Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <style name="MyActionBarTabs"
  2. parent="@android:style/Widget.Holo.ActionBar.TabView">
  3. <!-- tab indicator -->
  4. <item name="android:background">@drawable/tab_bar_background</item>
  5. <item name="android:showDividers">middle</item>
  6. <item name="android:divider">#dfecec</item>
  7. </style>
  8.  
  9. <?xml version="1.0" encoding="utf-8"?>
  10. <selector xmlns:android="http://schemas.android.com/apk/res/android">
  11. <!-- UNSELECTED TAB STATE -->
  12. <item android:state_selected="false" android:state_pressed="false">
  13. <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  14. <!-- Bottom indicator color for the UNSELECTED tab state -->
  15. <item android:top="-5dp" android:left="-5dp" android:right="-5dp">
  16. <shape android:shape="rectangle">
  17. <stroke android:color="#dfecec" android:width="2dp"/>
  18. </shape>
  19. </item>
  20. <item>
  21. <shape>
  22. <solid android:color="#396060"/>
  23. </shape>
  24. </item>
  25. </layer-list>
  26. </item>
  27. <!-- SELECTED TAB STATE -->
  28. <item android:state_selected="true" android:state_pressed="false">
  29. <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  30. <!-- Tab background color for the SELECTED tab state -->
  31. <item>
  32. <shape>
  33. <solid android:color="#396060"/>
  34. </shape>
  35. </item>
  36. <!-- Bottom indicator color for the SELECTED tab state -->
  37. <item android:top="-5dp" android:left="-5dp" android:right="-5dp">
  38. <shape android:shape="rectangle">
  39. <stroke android:color="#dfecec" android:width="2dp"/>
  40. </shape>
  41. </item>
  42. </layer-list>
  43. </item>
  44. </selector>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement