Search code examples
javaandroidandroid-widgetandroid-view

A horizontal selector for tips


I'm looking to implement tips into my app, and I really like this style of selector I'm attaching here (it's a screenshot from an iOS app). Is there something equivalent to this sort of horizontal selector on the Android side? Or should I just be squashing buttons or other views together?

Thanks for the help, I have also considered using a spinner instead, but I like this sort of style of all the options shown at one time in one line.

enter image description here


Solution

  • Yes. They are called Chips. Specifically you probably referring to a ChipGroup. and there's a guide and some examples on how to use them here They are rather new (might be the reason you were having trouble finding the name of what you are looking for) but they are included in the google material library so that provides support for older android versions.