Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding app title bar in Android pager

Can anyone tell how to hide the app title bar in Pager fragment. enter image description here

Android Pager

like image 994
Nemo Avatar asked Jan 18 '13 16:01

Nemo


People also ask

Which of the following method must be called to hide the title bar?

To do that you need to call the requestWindowFeature(Window. FEATURE_NO_TITLE) method of an Activity. But you need to call this before the setContentView( ) method of an Activity. To hide the Title Bar using the Android Manifest.

Which of the following attribute is used to hide the title of an activity in the manifest XML file *?

Just use getActionBar(). hide(); in your main activity onCreate() method.


1 Answers

This should be enough:

ActionBar bar = getActionBar(); // you might need to use getSupportActionBar() based on your project setup
bar.setDisplayShowTitleEnabled(false);
bar.setDisplayShowHomeEnabled(false);
like image 96
WarrenFaith Avatar answered Sep 17 '22 16:09

WarrenFaith