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 951723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:46:53+00:00 2026-05-15T23:46:53+00:00

I made a custom title bar for my app which works. However, when the

  • 0

I made a custom title bar for my app which works. However, when the app first loads, the app name is displayed in the title bar for a moment before my text appears. How do I stop this from happening?

I set my custom title bar in my main activity here:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
    setContentView(R.layout.main);
    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);

mytitle.xml is where I set my text:

<?xml version="1.0" encoding="utf-8"?>
 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/myTitle"
    android:text="my text"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="center"
    android:textAppearance="?android:attr/textAppearance"
    />

My title bar background doesn’t flash, just the text.

Thanks.

  • 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-15T23:46:54+00:00Added an answer on May 15, 2026 at 11:46 pm

    Basic explanation: when launching an application, to respond as quickly as possible to the user, Android first shows a “preview” window of the app before it even starts bringing up its process. It does this by taking the information available in the app’s AndroidManifest.xml and creating a window that looks like however an empty activity for it would appear. Thus, you should set the theme in the manifest to something that matches as closely as possible what your actual UI looks like.

    For the case of a custom title, there isn’t much you can do, because what the title will look like depends on what your code actually does and none of your code is running yet. The best you can probably do is use android:theme="@android:style/Theme.NoTitleBar" so that the preview window doesn’t try to show any title bar at all… of course in your activity you will need to clear this out by calling setTheme(android.R.style.Theme) to go back to the default theme.

    To elaborate just a bit on where in AndroidManifest.xml this needs to be placed:

    <application 
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar" >
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Made this custom alert box: <script type="text/javascript"> $(function () { var $alert = $('#alert');
I want to make my Java Application to call my own custom made function
I have problem with a fullscreen Flash video. I made a custom Flash video
After looking through the code for building custom credential providers for Windows 7, I
I have made some select and checkboxes - like mac and so on... with
I have been using a custom type for Money with my POCOs and tries
I want to create custom buttons to use in a TabHost. I haven been
I made a subclass of CMFCCaptionBar in what has so far been a vain
I am currently using dynaTree jQuery plugin to render a tree. <div id=tree style=height:100px;>
HI all, my scenario public class Permission { public virtual Function Function { get;

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.