开发者

How to create lazy loading in Horizontal scrollview

My application loads 10 image-thumbnails from server and set them into horizontal scrollview. When I swipe it to the last image, I would like to add lazy-loading element in the back of my horizontal scrollview and download next 10 more image in the background process.

My problem is -----> How I know the last image in horizontal scrollview shows on the screen?

I think the horizontal scrollview is so different from listview, bec开发者_StackOverflow中文版ause the listview uses adapter to control inside elements.

Thanks you so much


Maybe you can use a ViewPager http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html This uses an adapter behind the scenes and you can do the trick where you set the count to a very large number.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜