Android - How to remove app name from ActionBar -


this app:

enter image description here

now want remove app name actionbar...
want this:

enter image description here

my code:

<menu xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:myapp="http://schemas.android.com/apk/res-auto" >      <item         android:id="@+id/phone"         android:title="@string/phone"         android:icon="@drawable/phone"         myapp:showasaction="ifroom" />      <item         android:id="@+id/computer"         android:title="@string/computer"         android:icon="@drawable/computer"         myapp:showasaction="ifroom"  />   </menu> 

actionbar actionbar = getactionbar(); actionbar.setdisplayshowtitleenabled(false); actionbar.setdisplayshowhomeenabled(false); 

or can call actionbar.settitle("")


Popular posts from this blog