Can anyone tell how to hide the app title bar in Pager fragment.
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.
Just use getActionBar(). hide(); in your main activity onCreate() method.
This should be enough:
ActionBar bar = getActionBar(); // you might need to use getSupportActionBar() based on your project setup
bar.setDisplayShowTitleEnabled(false);
bar.setDisplayShowHomeEnabled(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With