Segmented Control Type in an Android Application

I am trying to make such buttons on an Android table:

enter image description here

This button is similar to uisegmentedcontrol for iphone. I do not find an easy way to do this in Android.

At the moment I am using the Description button here:

http://blog.bookworm.at/2010/10/segmented-controls-in-android.html

But the result does not seem very good compared to the table button. No round corner, alpha, etc.

Is there an easy way to use the same button as the table button?

+6
source share
1 answer

You can try to implement the code used by this brilliant developer:

https://github.com/makeramen/android-segmentedradiobutton

Helped me a lot!

+14
source

Source: https://habr.com/ru/post/889604/


All Articles