adamsp/AntipodalWall — pull request #1 by adamsp (2013-01-09 06:02:19+00:00)
Title: Adapter view full refactor

Refactored the layout to be an AdapterView - now it requires an Adapter to supply the views that go into it. This enables view recycling (YAY!).

Scrolling works, view recycling works, any touch events on the views work (have only tested regular click on an ImageView).

One oddity is that if you're supplying an image view (possibly any view...?) you have to call View.measure() with exact sizes of the ratio of the image. So if you have the exact size of the image, that's what it should be - or an identical ratio. (Like 16:10, for example).

It doesn't handle padding, spacing, etc, yet. Would like to add "fling" for faster scrolling, and "bounce" off the top/bottom when you reach it during scrolling.