Last active
September 28, 2017 18:07
-
-
Save zirkelc/129e2a46dee7922e9592d231f8753adf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<resources> | |
<!-- | |
Base application theme for API 21+. This theme completely replaces | |
MyTheme from BOTH res/values/styles.xml on API 21+ devices. | |
--> | |
<style name="MyTheme" parent="MyTheme.Base"> | |
<item name="android:windowDrawsSystemBarBackgrounds">true</item> | |
<item name="android:statusBarColor">@android:color/transparent</item> | |
</style> | |
<style name="SplashTheme" parent="SplashTheme.Base"> | |
<item name="android:windowTranslucentNavigation">true</item> | |
<item name="android:windowDrawsSystemBarBackgrounds">true</item> | |
<item name="android:statusBarColor">@android:color/transparent</item> | |
</style> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<resources> | |
<style name="MyTheme" parent="MyTheme.Base"> | |
</style> | |
<!-- Base theme applied no matter what API --> | |
<style name="MyTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"> | |
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:--> | |
<item name="windowNoTitle">true</item> | |
<!--We will be using the toolbar so no need to show ActionBar--> | |
<item name="windowActionBar">false</item> | |
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette--> | |
<!-- colorPrimary is used for the default action bar background --> | |
<item name="colorPrimary">@color/primary</item> | |
<!-- colorPrimaryDark is used for the status bar --> | |
<item name="colorPrimaryDark">@color/primaryDark</item> | |
<!-- colorAccent is used as the default value for colorControlActivated | |
which is used to tint widgets --> | |
<item name="colorAccent">@color/accent</item> | |
<!-- You can also set colorControlNormal, colorControlActivated | |
colorControlHighlight and colorSwitchThumbNormal. --> | |
<item name="windowActionModeOverlay">true</item> | |
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item> | |
<item name="android:windowBackground">@color/window_background</item> | |
</style> | |
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"> | |
<item name="colorAccent">@color/accent</item> | |
</style> | |
<style name="SplashTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"> | |
<item name="android:windowBackground">@drawable/splash_screen</item> | |
</style> | |
<style name="SplashTheme" parent="SplashTheme.Base"> | |
</style> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment