How to hide app name from title bar in Android?
You can use getSupportActionBar. if you want to hide just your app name use this code in Activity of that page :
getSupportActionBar().setDisplayShowHomeEnabled(false);
And if you want to hide ActionBar use this
getSupportActionBar().hide();
And you can ReName your app with :
getSupportActionBar().setTitle("that name you want");
Totaly you can use:
getSupportActionBar().
and others code ...
You have to call `
getSupportActionBar().setDisplayShowTitleEnabled(false)
- to hide it,
or
getSupportActionBar().setTitle("new title");
- if you want to change it
Kinda "workaround", but it's working fine:
In the Manifest
<activity
android:name=".YourActivity"
android:label="" />
If you want to do this outside of the code, put this in your manifest:<activity android:name=".ActivityName"
android:theme="@android:style/Theme.NoTitleBar">
edit: ranjith beat me to it.