Android Bar that contains a title for the Application or for the current Screen. It is the same as the Android ActionBar.
Questions tagged [android-titlebar]
151 questions
29
votes
2 answers
Change Spinner DropDown width
I need resize this part size to full display. How can i do this?
My adapter:
String[] navigations = getResources().getStringArray(R.array.actionBar);
ArrayAdapter adapter = new ArrayAdapter(
getBaseContext(),…

WOLVERINE
- 769
- 3
- 12
- 28
21
votes
2 answers
getSupportActionBar().setTitle() vs toolbar.setTitle()
I am aware that there are two methods to setting a title in an Android Activity.
Assuming I already have the following code...
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

Farbod Salamat-Zadeh
- 19,687
- 20
- 75
- 125
8
votes
9 answers
Android Toolbar Title
Unable to change toolbar title I set title in manifeast.xml & also used setTitle("TITLE");
I set title as History & Reports but it display different title Notifications which is another activity title.
I checked manifeast.xml but No change, Can…

Listo
- 179
- 1
- 2
- 8
8
votes
9 answers
setTitle doesn't work in fragment
I have a fragment where I try to change the title of the actionbar. This worked until i added setHasOptionsMenu(true) to the fragment.
How can i solve this? Because I need the optionsmenu in the fragment.
In fragment
@Override
public View…

JDN96
- 117
- 1
- 5
8
votes
5 answers
Android Studio: Activity preview does not show title bar
i know this question has been made before here, but i have tried the solution given and i don't get the preview look in the exact style like the device does.
I am using a Samsung Galaxy S3 mini on android version 4.2.2 as my device debugging, it is…

Oscar Reyes
- 4,223
- 8
- 41
- 75
7
votes
1 answer
Gradient styles
In my Android application I've hidden the default title bar, introduced a TabView and added my own titlebar under that TabView's tabs. At the moment, I'm using the ?android:attr/windowTitleStyle style which makes my new titlebar look gray and…

Andrew
- 20,756
- 32
- 99
- 177
7
votes
4 answers
Show title bar from code
In the manifest file I have this line to my application tag
android:theme="@android:style/Theme.NoTitleBar"
and basically every activity doesn't have a title bar, but for one of the activities I want to show the title bar
I know that to hide the…

Lukap
- 31,523
- 64
- 157
- 244
7
votes
2 answers
Is it possible to change the color of activity's title bar without FEATURE_CUSTOM_TITLE?
All the solutions I have found so far for changing the color of the activity's title bar (i.e. the one accessed via activity.setTitle() and activity.setProgress()) mandate a FEATURE_CUSTOM_TITLE:
https://stackoverflow.com/a/2285722/869501
But I am…

ateiob
- 9,016
- 10
- 44
- 55
6
votes
3 answers
Regarding removal of Activity Title bar in Android
i have already set the theme of my activity as android:theme = "@android:style/Theme.Dialog"
but i also want to remove the title bar of the activity. so how to use
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
along with the…

user506591
- 172
- 2
- 6
6
votes
12 answers
How to remove the title when launching android app?
I already remove the title in onCreate() method.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final ActionBar actionBar = getActionBar();
…

Kyle Xie
- 722
- 1
- 8
- 28
6
votes
3 answers
How to disable the window's title in a FragmentActivity?
In my activity that extends the FragmentActivity class, I can't disable the title using this.requestWindowFeature(Window.FEATURE_NO_TITLE);. It gives an ANR.
How can I disable a FragmentActivity's title?
This is the partial code of the activity's…

Bardya Momeni
- 337
- 4
- 13
6
votes
4 answers
findViewById(android.R.id.progress) returns null
The Android Developers reference lists R.id.progress among the built-in View resources available.
Yet, when I issue (in my activity class) the statement:
View pv = getWindow().findViewById(android.R.id.progress);
It returns null.
It returns null…

ateiob
- 9,016
- 10
- 44
- 55
5
votes
3 answers
how to set title in toolbar?
Seems pretty simple question, but could't find any answer.
How to change the toolbar title.
The toolbar is created by AppCompat Activity,not a custom created one.
It has the app name as default.I would like to change its Name corresponding to the…
user8660130
5
votes
2 answers
How to force Android application to reload the activity title corresponding to the language change?
How could force android application to reload activity title when the language of the application has been changed? For your information, the application reloads the title only when the device is rotated. Yet, the content of the activity is reload…

Abdulkarim Kanaan
- 1,703
- 4
- 20
- 32
5
votes
3 answers
Android: Issue with hiding title bar
I want to hide the title bar in all activities of my app. To do that, I put the following attribute in the tag:
android:theme="@android:style/Theme.NoTitleBar"
The title bar is now hidden, but my problem is that my app looks weird with that…

user1882359
- 51
- 1