Questions tagged [android-titlebar]

Android Bar that contains a title for the Application or for the current Screen. It is the same as the Android ActionBar.

151 questions
5
votes
1 answer

Combine custom title with FEATURE_PROGRESS

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…
ateiob
  • 9,016
  • 10
  • 44
  • 55
4
votes
3 answers

Hide Statusbar in fragment

I'm trying to hide status bar in fragment. I have successfully hidden toolbar but I want to hide status bar also only in one fragment.. @Override public void onCreate(Bundle arg0) { super.onCreate(arg0); //…
4
votes
3 answers

How to hide/remove the title bar in android

In my code I write: this.requestWindowFeature(Window.FEATURE_NO_TITLE); this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); this.setContentView(R.layout.activity_main); I've…
Twing90
  • 407
  • 2
  • 5
  • 15
4
votes
1 answer

CollapsingToolbarLayout title disappears

I have a CollapsingToolBarLayout.When the navigation drawer closes, the title on the toolbar disappears.This happens only when the Toolbar is in collapsed state. While in Expanded state the title remains.I have checked the code But i 'm unable to…
4
votes
2 answers

what is the default height of TitleBar and default TextSize in Titlebar in android?

Does anyone know what is the default size of the TitleBar and TitleBarText in android?
Piolo Opaw
  • 1,471
  • 2
  • 15
  • 21
3
votes
1 answer

Android 4.0 and custom title bar is not working

I have a application for android 2.3.3 where I am setting some custom titles like this: final boolean customTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.main); if ( customTitleSupported ) { …
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
3
votes
2 answers

Running the Android app without TitleBar

As by default, the application name is appearing on one label like TextView. How do i remove my titlebar permanently for my application? Any ideas?
user889625
3
votes
3 answers

How to hide title bar in Main Activity : I'm Using Android Studio

I'm Using Android Studio and tried everything possible by searching all the questions and answers available here and rest of the web. But nothing worked. Please assist me I'm new to android and very curios to learn. Here is my XML code : On using…
3
votes
1 answer

Why I get this difference of height values?

My screen is 1080x1920. Height of green line is 1794, red line - 63 (status bar) + 84 (TitleBar) = 147, violet line - 1584. Why I dont get height of green line by adding red one to the violet one? Violet line represents height of relative layout…
3
votes
0 answers

Activity's title area doesn't expand if the title is set from a Fragment that doesn't contribute to the options menu

This is very similar to the issue mentioned here, which mostly fixed my problem. However, if you are setting the title from a fragment that does not contribute to the options menu, then the title area won't expand. This can cause an ellipsis if the…
3
votes
6 answers

How to set the text color of titlebar?

I am using this as the theme.