Custom Holo Tab Theme

I am trying to create a tab that matches the Holo Light theme, but since I am using android 2.3.6, I need to create it myself.

enter image description here

The problem I am facing is that I can create a blue bottom for the bot, as the code is still in drawable, can someone tell me how to create a lower border for the same?

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:top="63dp">
        <shape android:shape="rectangle">
            <solid android:color="#898989" />
        </shape>
    </item>
    <item android:top="63dp" android:bottom="3px">
        <shape android:shape="rectangle">

            <solid android:color="@color/app_background" />
        </shape>
    </item>
    <item android:left="@dimen/tab_space" android:right="@dimen/tab_space"> 
        <shape android:shape="rectangle">           

            <gradient android:angle="90" android:startColor="#d9d9d9"
                android:endColor="#dfdfdf"/>        

            <!-- this is create a border but on every side -->
            <stroke android:width="3px" android:color="#38c0f4" />



        </shape>
    </item>

</layer-list>

so i don't know to create

1) bottom stroke 
2) shadow under each tab 
+3
source share
3 answers

You can simply set 9 patch images as background image. And this image may contain a stroke.

+2
source
+1

, ActionBarSherlock. ActionBarSherlock ICS Actionbar Apis API ICS Actionbar , , Android 2.2.

Ice Cream Sandwich .

-1

All Articles