styles.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  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. <item name="windowNoTitle">true</item>
  8. <!--We will be using the toolbar so no need to show ActionBar-->
  9. <item name="windowActionBar">false</item>
  10. <!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
  11. <!-- colorPrimary is used for the default action bar background -->
  12. <item name="colorPrimary">@color/primary</item>
  13. <!-- colorPrimaryDark is used for the status bar -->
  14. <item name="colorPrimaryDark">@color/primaryDark</item>
  15. <!-- colorAccent is used as the default value for colorControlActivated
  16. which is used to tint widgets -->
  17. <item name="colorAccent">@color/accent</item>
  18. <!-- You can also set colorControlNormal, colorControlActivated
  19. colorControlHighlight and colorSwitchThumbNormal. -->
  20. <!-- Option to hide the drop shadow here
  21. <item name="actionBarStyle">@style/MyTheme.ActionBar</item>
  22. <item name="android:windowContentOverlay">@null</item>
  23. -->
  24. </style>
  25. <style name="MyTheme.ActionBar" parent="style/Widget.AppCompat.Light.ActionBar.Solid">
  26. <!-- remove shadow below action bar -->
  27. <!-- <item name="android:elevation">0dp</item> -->
  28. <!-- Support library compatibility -->
  29. <item name="elevation">0dp</item>
  30. </style>
  31. </resources>