Remove Actionbar For Certain Activity
Remove the action bar for a specific Android activity#
These notes are for older Android projects that use manifest-defined themes and the classic action bar. For modern Android apps, use the app theme, Material components or Compose scaffold settings instead.
Activity-specific theme#
Add a theme to the activity node:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Full example:
<application
android:allowBackup="true"
android:icon="@drawable/lojacidadao"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name="com.example.basicmaponline.Intro"
android:screenOrientation="portrait"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>