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

  • Home
  • SEARCH
  • 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 6860981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:28:38+00:00 2026-05-27T02:28:38+00:00

I have an application which uses a custom title bar. However, when my application

  • 0

I have an application which uses a custom title bar. However, when my application launches, I noticed that the default title bar is shown for a brief period of time. My problem is I don’t want to show the default title bar while my application is loading. How do I hide the title bar while my application is loading so that there will be no hint of it and then show it afterwards?

So far, I tried the following solutions but none have worked:

  • Hide the title bar in XML and then set the custom title bar in code. (Problem encountered: I received an error message saying: “You cannot combine custom titles with other title features”.)

In XML:

<item name="android:windowNoTitle">true</item>

In onCreate method:

requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
//... some code goes here
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_header);
  • Set the size of the title bar in XML to 0. Then change it’s size via code later. (Problem encountered: I don’t know how to set the size of title bar in code. Is it possible? I tried getWindow().setAttributes() and getWindow().setLayout() but both of them didn’t worked.)”

In XML:

<item name="android:windowTitleSize">30dp</item>
  • Modify windowTitleBackgroundStyle and set a transparent drawable as background. (Problem encountered: The content of the title bar became invisible but a line below the title bar is still visible.)

In XML:

<!-- style used by windowTitleBackgroundStyle -->
<item name="android:background">@drawable/transparent</item>
  • 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-05-27T02:28:38+00:00Added an answer on May 27, 2026 at 2:28 am

    Some explanations for what you’ve encountered, hopefully they help lead you in a direction you’re happy with.

    You’ve already seen that your theme is used to generate what you see during activity loading. What’s happening is the system is generating a temporary/loading window based on your activity’s theme as specified in your manifest while your process is still starting up. Your code may not even be running yet, and your own activity will have a different window. This is significant because a number of settings become locked in once the window’s decor has been created, but you actually have two chances here. The window your activity uses hasn’t been created yet when you see this loading state.

    Setting no title in your theme isn’t working because it maps to the window feature Window.FEATURE_NO_TITLE. This dominates over any other title window features you may request and once a feature is requested you can’t un-request or remove it regardless of whether decor has been initialized yet.

    As part of your theme, the title size is giving you predictable issues. Theme attributes can’t be changed. However, which theme your activity is using can be changed before your window decor has been initialized. You can specify one theme in your manifest for the activity that will be used during loading and swap it out using setTheme on your activity. (Best place is probably in onCreate before setContentView, where you would otherwise request window features.)

    Chances are the line below the title bar you’re seeing is the android:windowContentOverlay – the drawable used to supply the drop shadow from the title bar over the content. On most devices the top edge of this shadow would probably appear as a line below the title bar area. You can set this to @null to get rid of the shadow entirely if you want.

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

Sidebar

Related Questions

I have customer that uses older, custom built ERP application for which they don't
I'm working on an application which uses SQLite Database on Android.I have a custom
I have this application that uses custom methods to register and loggin users using
I have a configuration tool application which uses a custom written plugin called PluginInterface.dll,
i have an application which uses CoreData/.sqlite to store my data, a tab bar
I have one application which uses the standard .NET forms authentication cookie, now I
I have an application which uses JSPs and Servlets and deployed on IBM-WASCE 2.1.
I have a little application which uses regular expressions under VB6. It works perfectly
I have a window application which uses SP classes to create a site. I
I have a PHP web application which uses a MySQL database for object tagging,

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.