iOS SegmentedControl equivalent in Android [closed

2019-01-21 16:28发布

问题:

What is a good Android analog of iOS's UISegmentedControl?

回答1:

I just wrote a similar implementation here: https://github.com/makeramen/android-segmentedradiobutton

It overrides RadioGroup instead of RadioButton and doesn't override the onDraw method so XML styling still works.



回答2:

Benjamin Ferrari has a nice implementation here: http://blog.bookworm.at/2010/10/segmented-controls-in-android.html . Essentially he's just overridden the RadioButton.