Android: In v21 and later, make the navigation bar black using styles.xml

This commit is contained in:
Henrik Rydgård 2018-05-25 22:42:43 +02:00
parent 3472d62fff
commit 0e0a3d2804
3 changed files with 18 additions and 1 deletions

View File

@ -47,7 +47,7 @@
android:name=".PpssppActivity"
android:configChanges="locale|keyboard|keyboardHidden|navigation|uiMode"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
android:theme="@style/ppsspp_style">
<!-- android:screenOrientation="landscape" -->
<intent-filter>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<style name="ppsspp_style">
<item name="android:windowFullscreen">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:navigationBarColor">@color/black</item>
</style>
</resources>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<style name="ppsspp_style">
<item name="android:windowFullscreen">true</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>