Vertical gallery in android

前端 未结 3 1759
刺人心
刺人心 2021-01-16 04:20

i am developing an app, for which I need a gallery to be set in vertical mode instead of horizontal mode. my question is, is there any possibilities for me to show a vertica

相关标签:
3条回答
  • 2021-01-16 04:33

    Ok. so i came to know that vertical gallery in android is not possible with the normal gallery widget. So I tried using Custom Listview with some modifications to change the look of the listview. Now my listview looks exactly like a vertical scrollable gallery.

    0 讨论(0)
  • 2021-01-16 04:36

    Why dont you create a custom adapter for the listview? If you define a custom adapter with one imageview then it will be same as vertical Gallery view. So once you define this adapter then you will be having 1 imageview per one item so it will look like vertical gallery view.

    FYI, here is a listview with image, you can use the same listview, play with it.

    0 讨论(0)
  • 2021-01-16 04:52

    you can use a ScrollView which contains some imageView setted to fill_parent , and then you can Scroll them as a vertical Gallery

    0 讨论(0)
提交回复
热议问题