Reputation: 465
I wanna implement pull to refresh event with Android's Gallery view like IOS application name "500px" how to do this, or I should use HorizontalScrollView instead of Gallery ?
Upvotes: 0
Views: 1458
Reputation: 28480
Update
Chris Banes Pull-to-refresh library now implements horizontal pull-to-refresh.
end Update
I'm not aware of any components with horizontal pull-to-refresh available on github or anywhere googleable.
To create your own component, have a look at these pull-to-refresh components and their source code as a starting point. Just check their licenses before you implement anything:
Pull To Refresh for Android by Johan Nilsson. The component extends ListView directly which makes the source straightforward to understand if you've worked with Android's ListView before.
Android-PullToRefresh by Chris Banes. It includes many features including pull-up-to-get-older and a double pull-up pull-down state. This is perhaps not the right starting point IMHO if you want to implement only pull-to-refresh since it's so comprehensive, but can be of interest if you want to build something really feature-rich.
Upvotes: 1