How can i swipe the images in android

你离开我真会死。 提交于 2019-12-11 17:56:40

问题


I was intended to download the images from a dynamic URL and show them on the grid view. when the user click the images in the grid view it should be seen in full screen and also the user can have to swipe the images which are downloaded from the URL.?

Now i can able to show the images which are in SD card..!

I have googled but didn't got a clear idea about that..!

Thanks in advance..!


回答1:


Step 1 : Use Gallery in order to display the image.

Step 2 : Use lazy loading to download the images from server and display inside Gallery.

Since Gallery is auto swiped so there is no need to right specific code for it. Ya you can use onFling in order to control over swiping of Gallery.



来源:https://stackoverflow.com/questions/9665144/how-can-i-swipe-the-images-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!