简体   繁体   中英

How to implement something like this in an android application?

单选择器

I'm looking for the right and convenient way to create this item. I spent many hours on the internet and still have not found anything like it on the android. Thank you in advance.

If you would like to use Android native library i suggest TabLayout , with a ViewPager.

It will allow you to have one tab selected at a time, and have the animation when you slide to the next tab.

This is just an example that you can take a look at: https://android.jlelse.eu/tablayout-and-viewpager-in-your-android-app-738b8840c38a

There are also some custom libraries that will maybe give a better animation or something like that but i suggest you first try this before trying 3rd party libs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM