Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <resources>
  2.  
  3. <!-- Base application theme. -->
  4. <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
  5. <!-- Customize your theme here. -->
  6.  
  7. </style>
  8.  
  9. </resources>
  10.  
  11. <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
  12. <item name="colorPrimary">#995544</item>
  13. </style>
  14.  
  15. <item name="colorPrimary">@color/yourColor</item>
  16.  
  17. <style name="AppCompatTheme" parent="Theme.AppCompat.Light.DarkActionBar">
  18. <item name="android:background">#ff540e9e</item>
  19. <item name="android:textColor">#ffffff</item>
  20. </style>
  21.  
  22. //First you need to declare the custom theme in your styles file
  23. </style>
  24.  
  25. <style name="MyCustomTheme" parent="@android:style/Theme.AppCompat.Light.DarkActionBar">
  26. <item name="android:actionBarStyle">@style/MyActionBarTheme</item>
  27.  
  28. </style>
  29. //Then you provide details on it layout/color etc
  30. <style name="MyActionBarTheme" parent="@android:style/Widget.AppCompat.Light.DarkActionBar">
  31. <item name="android:background">#33FF33</item>
  32. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement