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 vertical gallery kind of widget? Any help is appreciated.
Asked
Active
Viewed 6,515 times
1
-
2Cant you use Listview instead? – ingsaurabh May 19 '11 at 09:52
-
If it can look like gallery I can use it. Do you have any working samples on it. – Andro Selva May 19 '11 at 09:56
-
Have you got the solution? How can you send one item at a time to adapter.Can you please give me some example or explain it in brief? – Akshay Oct 11 '12 at 22:08
3 Answers
3
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.

Community
- 1
- 1

Paresh Mayani
- 127,700
- 71
- 241
- 295
1
you can use a ScrollView which contains some imageView setted to fill_parent , and then you can Scroll them as a vertical Gallery

Houcine
- 24,001
- 13
- 56
- 83
-
Is it possible for me to add images to it dynamically to that scroll view? – Andro Selva May 19 '11 at 10:03
-
you should use a `ListView`, as it will handle requesting the views for list items on demand. with a `ScrollView`, you have to figure out for yourself when to populate additional items. – Jeffrey Blattman Aug 31 '12 at 16:13
1
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.

Andro Selva
- 53,910
- 52
- 193
- 240