Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9195213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:34:50+00:00 2026-06-17T21:34:50+00:00

I have the following theme in res/values/styles.xml : <?xml version=1.0 encoding=utf-8?> <resources xmlns:android=http://schemas.android.com/apk/res/android> <style

  • 0

I have the following theme in res/values/styles.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="AppBaseTheme" parent="@android:style/Theme.NoTitleBar">
    </style>

    <style name="AppTheme" parent="AppBaseTheme">
        <item name="android:windowNoTitle">true</item>
    </style>
</resources>

If I remove the <item name="android:windowNoTitle">true</item> line, my activities have the titlebar on them. However, if I keep that line there, then they do not have a titlebar (which is what I want).

I’m curious why parent="@android:style/Theme.NoTitleBar" seems to have no effect? Does parent not do what I think it does? I thought it worked like this:

@android:style/Theme.NoTitleBar --> AppBaseTheme --> AppTheme
^                                   ^                ^
|                                   |                |
|                                   |                Has everything AppBaseTheme
|                                   |                does, unless it's overridden
|                                   |
|                                   Has everything @android:style/Theme.NoTitleBar
|                                   does, unless it's overridden (which I'm not
|                                   doing)
|
Sets whatever it needs to to not have a title, which I assume
is done by setting <item name="android:windowNoTitle">true</item>

However, I’ve also found that if I set <item name="android:windowNoTitle">true</item> in AppBaseTheme it also has no effect; I have to set it in AppTheme. Then what the heck is the point of specifying the parent?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:34:51+00:00Added an answer on June 17, 2026 at 9:34 pm

    I think I just figured it out. It turns out that when I created the project, Android created a res/values-14/styles.xml file, and inside of that was <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">.

    It turns out that the res/values-14/styles.xml file was overriding my default res/values/styles.xml because the device I was testing on has API level 14, and thus it preferred the files in values-14 than the default values.

    Inheritance does seem to work like I thought it did; I just wasn’t realizing things were being overridden by the files created when I first made my project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following XML. <?xml version=1.0 encoding=utf-8?> <PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android> <PreferenceCategory android:title=@string/preference_xxx_category> <CheckBoxPreference android:title=@string/preference_xxx_dual_mode_title
Consider the following code and the output: <?xml version=1.0 encoding=utf-8?> <TableLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent
I have the following: <html lang=en class=no-js theme-light> or <html lang=en class=no-js xxx yyy
I have an activity that appears as a dialog using the following custom theme:
i have made a simple php contact form following this tutorial: http://www.catswhocode.com/blog/how-to-create-a-built-in-contact-form-for-your-wordpress-theme The big
I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1
I have a folder to save the resource res/values-v11 to be used in the
I have the following JSON structure, being returned from an AJAX call (pseudo values)
I am new to XML, and Android programming.I was following a tutorial, which asked
I currently have an Android application targeting version 11 of the SDK with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.