I want to achieve rounded corners for the tab that I\'ve constructed in my application. So far I was able to come up with this
I think this can be done with one drawable for one view. For 2 tab need only 2 drawable. This will also worked for tabs with border color.
For Left Tab:
-
-
-
-
-
-
Left Tab Background Preview:
For Right Tab:
-
-
-
-
-
-
Right Tab Background Preview:
If there is more than 2 tabs Then this if for Middle Tab:
-
-
-
-
-
-
Middle Tab Background Preview:
Drawables have both selected and unselected state