简体   繁体   中英

Android - Create a Vertical ListView with Horizontal scrollable row

I need a Vertical ListView where each row is a horizontal scrollable list of items. Each items is an image with a button. I need the app to be compatible with Android 2.2.

I've read 3 working solutions here

  1. Use a custom Horizontal ListView as rows

  2. Use a ViewPager as rows ViewPager inside ListView

  3. Use an horizontal ScrollView

These solutions are a bit old and each has their detractors.

So I was wondering, at the current state, is there an "official" solution for my problem? Or, what is the best one?

如果垂直ListView中的项目数是固定的,那么最好使用水平ListViews。

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