开发者

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

开发者 https://www.devze.com 2023-04-09 18:31 出处:网络
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.

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

精彩评论

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