I\'m looking through the Holo.Light
theme, and I can\'t seem to find the magic style to override to get rid of the title text that briefly shows up when my app
getSupportActionBar().setDisplayShowTitleEnabled(false);
getSupportActionBar().hide();
hope this will help
Use the following:
requestWindowFeature(Window.FEATURE_NO_TITLE);
I am new to Android so maybe I am wrong...but to solve this problem cant we just go to the manifest and remove the activity label
<activity
android:name=".Bcft"
android:screenOrientation="portrait"
**android:label="" >**
Worked for me....
Simply extends your java file from AppCompatActivity
and do this:
ActionBar actionBar = getSupportActionBar(); // support.v7
actionBar.setTitle(" ");
I tried this. This will help -
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayShowTitleEnabled(false);
getSupportActionBar should be called after setSupportActionBar, thus setting the toolbar, otherwise, NullpointerException because there is no toolbar set. Hope this helps
as a workaround just add this line incase you have custom action/toolbars
this.setTitle("");
in your Activity