Reputation: 379
I know how to remove the title in action bar activity from the code, but is it possible to remove the title from the xml file?
Upvotes: 1
Views: 1727
Reputation: 503
See in How do you remove the title text from the Android ActionBar?
<style name="AppBaseTheme" parent="android:Theme.Holo">
<item name="android:actionBarStyle">@style/AppBaseTheme.ActionBar</item>
</style>
<style name="AppBaseTheme.ActionBar" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:displayOptions">showHome|useLogo</item>
</style>
Upvotes: 1
Reputation: 7504
Yes.. just set the title attribute for that activity to be empty in the Manifest.xml.
Upvotes: 1
Reputation: 548
By remove I assume you mean have an empty String value placed there? You can do it from the AndroidManifest.
When defining the activity in the manifest set "android:title" for the activities you want to remove the title in the action bar activity for.
<activity
android:name=".Activity"
android:screenOrientation="portrait"
android:title=""/>
Upvotes: 0