Julio Del Valle
Julio Del Valle

Reputation: 381

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 the Theme of the app to NoTitleBar.

How can I add by code to set/appear the titlebar? Thx.

Upvotes: 0

Views: 2253

Answers (2)

slayton
slayton

Reputation: 20319

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"/>

Upvotes: 1

Peter Knego
Peter Knego

Reputation: 80330

You can override a theme set on <application>, by defining theme on <activity>.

Upvotes: 0

Related Questions