I'm trying to set a 1px divider between my (android) action bar and split tabs below. how can it be done?
Thanks,
I'm trying to set a 1px divider between my (android) action bar and split tabs below. how can it be done?
Thanks,
Just put this view between the actionBar and splitTabs
Vertical:
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
Horizontal:
<View
android:layout_width="1dp"
android:layout_height="fill_parent"
android:background="@android:color/darker_gray"/>
Android Drawing Separator/Divider Line in Layout?
You could do this dynamically the same way as above just in java:
View div = new View(this);
div.setBackgroundColor(0xaaaaaa);
div.setLayoutParams(new ViewGroup.LayoutParams(1,-1));
I never tested the code but it would be something similar.