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?
Asked
Active
Viewed 1,725 times
3 Answers
1
Yes.. just set the title attribute for that activity to be empty in the Manifest.xml.

ucsunil
- 7,378
- 1
- 27
- 32
1
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>
0
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=""/>

Sam Bains
- 548
- 2
- 8