开发者

How show or appears the TitleBar? (I'd set NoTitleBar in Manifest.xml)

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>.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜