I'm looking for to set the default titlebar in one layout into my app. But I'd set th开发者_如何学JAVAe Theme of the app to NoTitleBar.
How can I add by code to set/appear the titlebar? Thx.
You can specify the theme for each activity in your AndroidManifest.xml
file:
<activity android:name="Activity1" android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
<activity android:name="Activity" android:label="@string/app_name"
android:theme="@android:style/SOMETHING_ELSE"/>
You can override a theme set on <application>
, by defining theme on <activity>
.
精彩评论