I am wondering is it possible to apply ActionBarSherlock (v4.2.0) TabWidget theme on native TabWidget? So it will looks like Holo on pre ICS androids. If you know how – please share.
All i found is this: https://gist.github.com/1126843 but it seems not work anymore.
Standard xml layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</FrameLayout>
</LinearLayout>
</TabHost>
</LinearLayout>
I found some solution myself. It’s not pure ABS resources but use minimum additional things:
Almost same as ABS selector except
tab_indicator_compat_holo.xml
Activity