Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style name="MyActionBarTabs"
- parent="@android:style/Widget.Holo.ActionBar.TabView">
- <!-- tab indicator -->
- <item name="android:background">@drawable/tab_bar_background</item>
- <item name="android:showDividers">middle</item>
- <item name="android:divider">#dfecec</item>
- </style>
- <?xml version="1.0" encoding="utf-8"?>
- <selector xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- UNSELECTED TAB STATE -->
- <item android:state_selected="false" android:state_pressed="false">
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- Bottom indicator color for the UNSELECTED tab state -->
- <item android:top="-5dp" android:left="-5dp" android:right="-5dp">
- <shape android:shape="rectangle">
- <stroke android:color="#dfecec" android:width="2dp"/>
- </shape>
- </item>
- <item>
- <shape>
- <solid android:color="#396060"/>
- </shape>
- </item>
- </layer-list>
- </item>
- <!-- SELECTED TAB STATE -->
- <item android:state_selected="true" android:state_pressed="false">
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- Tab background color for the SELECTED tab state -->
- <item>
- <shape>
- <solid android:color="#396060"/>
- </shape>
- </item>
- <!-- Bottom indicator color for the SELECTED tab state -->
- <item android:top="-5dp" android:left="-5dp" android:right="-5dp">
- <shape android:shape="rectangle">
- <stroke android:color="#dfecec" android:width="2dp"/>
- </shape>
- </item>
- </layer-list>
- </item>
- </selector>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement