开发者

Android: Tweetie Style List Refresh

开发者 https://www.devze.com 2023-01-09 00:48 出处:网络
I\'ve come from iPhone background and am writing an android app. I\'ve got a list which is cached locally, but primary is stored on the our webserver as the app is an interface to our service. What

I've come from iPhone background and am writing an android app.

I've got a list which is cached locally, but primary is stored on the our webserver as the app is an interface to our service. What I really want is a simple way for the user to refresh the list. So I'm trying to replicate the tweetie pulldown to refresh list.

Does anybody know how to hide the ListView header row, so that android believes the top is the first list item, and it naturally stops scrolling there, but if 开发者_运维技巧you pull the list down more it reveals the "refresh" header which stays on screen until the refresh is done and then goes back up?


Check out this widget:

https://github.com/johannilsson/android-pulltorefresh

0

精彩评论

暂无评论...
验证码 换一张
取 消