Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <resources>
  2. <style name="MyCustomTheme" parent="@android:style/Theme.Holo.Light">
  3. <item name="android:actionBarStyle">@style/MyActionBarTheme</item>
  4. </style>
  5.  
  6. <style name="MyActionBarTheme" parent="@android:style/Widget.Holo.Light.ActionBar">
  7. <item name="android:background">ANY_HEX_COLOR_CODE</item>
  8. </style>
  9. </resources>
  10.  
  11. ActionBar actionBar = getActionBar();
  12. actionBar.setBackgroundDrawable(new ColorDrawable(Color.RED)); // set your desired color
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement