Android 上有标准的 ImageViewer 吗?
有一些应用程序使用一种标准方式向用户显示图像。我特别喜欢一个,那就是 Facebook。 Facebook 以全屏模式向用户呈现黑色背景的图像。如果用户单击图像,则会出现向左和/或向右箭头,用于移动到相册中的下一个/上一个图像。您还启用了缩放控件。相当强大而且漂亮。
Android Market 使用相同的箭头在视图之间切换,但未启用缩放控件。他们可能正在使用 ImageSwitcher 来实现这一点。
有人知道 Android 中是否有类似的标准控件吗?更像 Facebook 使用的东西吗?
提前致谢!
There are some applications out there, that use a kind of standard way for showing images to the user. There is one i specially like, is the Facebook one. Facebook presents images to the user in full screen mode, with a black background. If user clicks on the image, there appears a left and/or right arrow to move to next/previous image in the album. You also have zoom controls enabled. Quite powerful and nice.
Android Market uses same arrows for switching between views, but zoom controls are not enabled. They're probably using a ImageSwitcher for that.
Does somebody know if there is a similar standard control in Android for that?. Something more like Facebook uses?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Android中有一个Gallery类。一探究竟。 API 演示中也有一个图库演示...
此外,所有 Android 手机都没有标准的图库应用程序,但是,您可以要求您的用户下载 com.cooliris.media 应用程序,它是库存 Android 画廊。
最后,您可以使用 Intent 将用户传递到库(假设他们安装了 Cooliris)。
There is a Gallery class in Android. Check it out. There is a Gallery demo in the API demos as well....
Also, there is no standard gallery app across all Android phones, however, you could ask your users to download the com.cooliris.media app which is the exact code for the stock android gallery.
Finally, you could pass your users to the gallery (assuming they have cooliris installed) using an Intent.
检查 Chris Banes 的 PhotoView 库。
Check PhotoView library by Chris Banes.