What is a good Android analog of iOS's UISegmentedControl
?
Android Segmented control is a linear segment made up of multiple segments with each segment functioning as a button. The segments are the same size and allow users to select between multiple contexts.
In iOS applications, segmented controls allow you to select one of several options. Each option is represented by a segment - a button, which is part of the segmented control. The user can touch a segment to select it.
Use a segmented control to provide closely related choices that affect an object, state, or view. For example, a segmented control can help people switch between views in a toolbar.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With