Home > other >  How can I make a dashed shaped Tab selection using buttons in Android?
How can I make a dashed shaped Tab selection using buttons in Android?

Time:09-16

enter image description here

I am using the button as the side tab menus for item like 'Home','Games',etc. I can't figure out how to get such rectangle shape selection when button is pressed. Can I use drawable res for the same. Please help.

CodePudding user response:

You should use a custom drawable with left margin rectangle drawable 1dp to 5dp width. I think you already have the logic for toggling the current tab's button to only have this drawable.

  • Related