Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS SegmentedControl equivalent in Android [closed]

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

like image 902
Venugopal Avatar asked Oct 17 '10 11:10

Venugopal


People also ask

Does Android have a segmented control?

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.

What is segmented control iOS?

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.

When to use a segmented control?

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.


1 Answers

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.

like image 142
vinc3m1 Avatar answered Sep 20 '22 19:09

vinc3m1