Skip to content

Commit b98d5e2

Browse files
committed
Add newer Android styles
1 parent 56506b9 commit b98d5e2

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 21+. This theme completely replaces
5+
AppBaseTheme from BOTH res/values/styles.xml and
6+
res/values-v21/styles.xml on API 21+ devices.
7+
-->
8+
<style name="AppBaseTheme" parent="android:Theme.Material">
9+
<!-- API 21 theme customizations can go here. -->
10+
<item name="android:statusBarColor">#212121</item>
11+
<item name="android:navigationBarColor">#212121</item>
12+
</style>
13+
14+
</resources>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<resources>
2+
3+
<!--
4+
Use a black background to avoid the transparent background when switching apps.
5+
android:windowBackgroundFallback is supposed to do this, but it wasn't working for
6+
me as of Android 7.1
7+
-->
8+
<style name="StreamBaseTheme" parent="AppBaseTheme">
9+
<item name="android:windowBackground">@android:color/black</item>
10+
</style>
11+
12+
</resources>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<resources>
2+
<style name="AppBaseTheme" parent="android:Theme.Material">
3+
<item name="android:navigationBarColor">@android:color/transparent</item>
4+
<item name="android:statusBarColor">@android:color/transparent</item>
5+
</style>
6+
</resources>

0 commit comments

Comments
 (0)