Android app, strictly level 21 onwards only. Not using AppCompat.
Full-screen app with absolutely no bars.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.client.client">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Main"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Am confused between:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
versus...
android:theme="@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen"
What is the best and most modern choice?
I don't understand the complete history of the difference between those and similar values in Android :/
Again, not using AppCompat, if that matters.
Here's a screenshot of how I want the app to look on all devices:
what is the best and most modern choice?
With a minSdkVersion
of 21+, you can use themes based off of Theme.Material
, such as Theme.Material.Light.NoActionBar.Fullscreen
.