使用 Javascript 用于 PhoneGap Android 应用程序的简单图片库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8741123/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 04:26:12  来源:igfitidea点击:

Simple Image Gallery using Javascript for PhoneGap Android app

javascriptandroidcordova

提问by Rajesh Rs

Can anyone guide me with the simple javascript code for creating an image gallery .

任何人都可以用简单的 javascript 代码来指导我创建图片库。

I found many but integrating with my app is creating many problems, so i want it to be simple. Should be able to flick the images back and front that is all .

我发现了很多,但与我的应用程序集成会产生很多问题,所以我希望它很简单。应该能够前后轻弹图像就是这样。

Any help will be greatly appreciated..

任何帮助将不胜感激..

回答by nithin

Try this sample web app:

试试这个示例网络应用程序:

Mobile image gallery

手机图片库

PhotoSwipe lib- http://www.photoswipe.com/

PhotoSwipe 库- http://www.photoswipe.com/

回答by Max

I am using photoswipe on my android app. I may not give you the answer straight away but I have to say photoswipe is giving me a very hard time for my phonegap app on android. It does not work very well on some of android device like HTC and Note.

我在我的 android 应用程序上使用 photowipe。我可能不会马上给你答案,但我不得不说,photoswipe 给我在 Android 上的 phonegap 应用程序带来了非常困难的时间。它在某些 android 设备(如 HTC 和 Note)上效果不佳。