How can I make a tab layout like this?
Not asking about the simple making of a tab layout rather what the main question Is how can I make it round from borders?
And when tab.click it should get highlighted
If you want to create a view like this.
Then probably you need to make a custom tab layout.
Use card view for base and then use lable or button to make such layout.
What I am thinking is a card view with horizontal arrangement and corner radius 16.
and then three labels placed inside the horizontal arrangement.
Yes, just try it.
Turn your thinking in real/practical and see what happens. No matter what would be the end-result but you will learn something new and that’s for sure
I will surely share it with the community too if I am able to achieve this.
For default view set label colour to Grey and when it clicked set its colour to black.
I have done that in above app
Just used black and pink instead of grey and black.
That’s what i did earlier but it is not possible to make it round from borders.
Check it now
tablayout (4).apk (5.0 MB)
That’s due to padding now I have set padding to 0.
Now it should work. And maybe also due to Screen Size.
Yes, it is working now. I am making a guide on how to make like this
Good
Here it is