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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:11:46+00:00 2026-06-10T06:11:46+00:00

In my onCreate() I set a progress bar as follows: getWindow().requestFeature(Window.FEATURE_PROGRESS); getWindow().setFeatureInt( Window.FEATURE_PROGRESS, Window.PROGRESS_VISIBILITY_ON);

  • 0

In my onCreate() I set a progress bar as follows:

getWindow().requestFeature(Window.FEATURE_PROGRESS);
getWindow().setFeatureInt( Window.FEATURE_PROGRESS, Window.PROGRESS_VISIBILITY_ON);

Now, wishing to enhance that title bar a little bit, I want to change its background color. First step is to check if FEATURE_CUSTOM_TITLE is supported:

final boolean customTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
if ( customTitleSupported ) {
    Log.i(TAG, "CUSTOM TITLE SUPPORTED!")
}

But as soon as I call that requestWindowFeature(Window.FEATURE_CUSTOM_TITLE) I get an:

AndroidRuntimeException: You cannot combine custom titles with other title features

(It doesn’t matter if I call this function before setting FEATURE_PROGRESS or after)

Any idea how to work around this?

Alternatively, I would avoid a custom title bar, if I could find the non-custom title bar’s resource ID. Something that’s better than the dangerous getParent().

Is this possible?

  • 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-10T06:11:48+00:00Added an answer on June 10, 2026 at 6:11 am

    As documentation says:

    FEATURE_CUSTOM_TITLE

    Flag for custom title. You cannot combine this
    feature with other title features.

    What you can do as you mentioned is to use a custom title bar with a ProgressBar, here is an example how to accomplish that.

    In the other hand, why aren’t you using Action Bar?.

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

Sidebar

Related Questions

In my onCreate() I set an UncaughtException handler as follows: Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { @Override
I am trying to display a progress bar using threading .. I accept that
This is my activity oncreate() method. I set a positive button ok with a
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main2); savedInstanceState.putString(foo, bar); } @Override public void
I am logging each onCreate() and onDestroy() calls. I found out that once I
I found that onCreate of ContentProvider gets called first, even before the onCreate of
I need to show a second activity after the progress bar is filled. I
I have created an activity in which I have created a progress bar as
I am trying to update a progress bar with unzipping of file in the
I'm trying to hide the title bar after the progress bar finishes loading on

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.