当数据(图像和音频路径)来自服务器并在其上滑动时如何实现图库?

How to implement gallery when data(Images and audio path) are coming from server, with swipe on it?

我已经实现了现在只显示图像的图库,但我必须同时显示图像和音频文件 it.On 滑动它必须显示下一个 image/audio,所有数据(image/audio 路径)来自 server.Any 示例或代码非常感谢。 提前谢谢你。

实现它:

1:创建一个简单的 ViewPager 并设置将包含视图和音频文件的适配器。 -http://developer.android.com/training/animation/screen-slide.html

  1. 在您的 SD 卡中对图像和音频文件使用延迟加载,并在加载时显示加载程序。

-https://github.com/novoda/image-loader

-https://github.com/wuman/AndroidImageLoader

如果link以下对您有帮助,那么您可以使用它。

https://github.com/Trinea/android-common

下载音频文件:

http://www.coderzheaven.com/2012/04/29/download-file-android-device-remote-server-custom-progressbar-showing-progress/

  1. 下载音频文件后即可播放

  2. 并且请提及检查以仅下载未下载的音频。