styles.xml 1.1 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <resources>
  3. <style name="MyTheme" parent="MyTheme.Base">
  4. </style>
  5. <!-- Base theme applied no matter what API -->
  6. <style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
  7. <!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
  8. <!-- colorPrimary is used for the default action bar background -->
  9. <item name="colorPrimary">#0288D1</item>
  10. <!-- colorPrimaryDark is used for the status bar -->
  11. <item name="colorPrimaryDark">#03A9F4</item>
  12. <!-- colorAccent is used as the default value for colorControlActivated
  13. which is used to tint widgets -->
  14. <item name="colorAccent">#FFC107</item>
  15. <!-- You can also set colorControlNormal, colorControlActivated
  16. colorControlHighlight and colorSwitchThumbNormal. -->
  17. </style>
  18. <style name="MyTheme.ActionBar" parent="style/Widget.AppCompat.Light.ActionBar.Solid">
  19. <!-- remove shadow below action bar -->
  20. <!-- <item name="android:elevation">0dp</item> -->
  21. <!-- Support library compatibility -->
  22. <item name="elevation">0dp</item>
  23. </style>
  24. </resources>