Pinterest的,如自定义的GridView自定义、Pinterest、GridView

2023-09-06 01:50:29 作者:乱了少年的心。

我是新来的机器人,我正在寻找像Pinterest的(主屏幕)应用程序,已经建立了我的手机网格视图逻辑。大量没有。图像是从我需要在以下与滚动分页效果,即加载图像的形式显示在服务器的到来。

I am new to android, and I am searching for a logic for grid view like pinterest(homescreen) app that has been build for i-phone. A large no. of images are coming from the server that I need to show in following form with pagination effect i.e loading images on scroll.

请回复,如果它是周围其他可能的途径。我会非常感激。

please reply if it is possible other way around. I'll be highly thankful.

推荐答案

如果要执行装载上滚动的图像,然后将它类似于List View.First挽救WS URL中的所有数据,然后根据需要加载现在

If you want to perform loading of image on scroll then it will similar to List View.First save all data from WS URL then load on demand Now

Commonsware无尽适配器适用于列表视图,您可以与GridView控件集成它太

Commonsware Endless Adapter For Listview,you can integrate it with GridView too

EndLessAdapter

另一种方法是把你的网格的观点在 ViewFlipper 并然后翻转与动画。

Another way is to put your grid views in a ViewFlipper and then flip with an animation.

使用setInAnimation()和setOutAnimation()来设置动画和翻转与showNext网页()和show previous()

Use setInAnimation() and setOutAnimation() to set the animations and flip the pages with showNext() and showPrevious()