styles.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <resources>
  3. <style name="MainTheme" parent="MainTheme.Base">
  4. </style>
  5. <style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
  6. <item name="colorPrimary">#4CAF50</item>
  7. <item name="colorPrimaryDark">#388E3C</item>
  8. <item name="colorAccent">#4CAF50</item>
  9. <item name="windowNoTitle">true</item>
  10. <item name="windowActionModeOverlay">true</item>
  11. </style>
  12. <style name="Theme.Splash" parent="Theme.AppCompat.Light.NoActionBar">
  13. <item name="android:windowNoTitle">true</item>
  14. <item name="android:windowFullscreen">true</item>
  15. <item name="windowActionBar">false</item>
  16. </style>
  17. <!-- Base theme applied no matter what API -->
  18. <style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
  19. <!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
  20. <item name="windowNoTitle">true</item>
  21. <!--We will be using the toolbar so no need to show ActionBar-->
  22. <item name="windowActionBar">false</item>
  23. <!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
  24. <!-- colorPrimary is used for the default action bar background -->
  25. <item name="colorPrimary">#4CAF50</item>
  26. <!-- colorPrimaryDark is used for the status bar -->
  27. <item name="colorPrimaryDark">#388E3C</item>
  28. <!-- colorAccent is used as the default value for colorControlActivated
  29. which is used to tint widgets -->
  30. <item name="colorAccent">#4CAF50</item>
  31. <item name="android:textColorPrimary">#212121</item>
  32. <!-- You can also set colorControlNormal, colorControlActivated
  33. colorControlHighlight and colorSwitchThumbNormal. -->
  34. <item name="windowActionModeOverlay">true</item>
  35. <item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
  36. </style>
  37. <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
  38. <item name="colorAccent">#FF4081</item>
  39. </style>
  40. </resources>