Desired effect I have a bunch of small images that I\'d like to show on a \"wall\" and then let the user fling this wall in any direction and select an image.>
A GridView
can have content that extends beyond the size of the screen, but only in the vertical direction.
Question: What is the best widget to use to implement the desired effect ?
The are no default widgets (at least prior to 3.0) which implement 2D scrolling. All of them implement 1D (scrolling in one direction) only. Sadly the solution to your problem is not that easy.
You could:
TableLayout
inside a custom ScrollView
class, and handle the touch events yourself. This would allow you to do proper 2D panning, but would not be so good for large data-sets since there would be no view recyclingGridView
if possible to enable horizontal scrolling functionality (probably the best solution if you can do it)TableLayout
inside a ScrollView
(with layout_width="wrap_content
) which you put inside a HorizontalScrollView
- though this may work it wouldn't be the optimum solution