Android中的照片库 [英] Photo Gallery in Android

查看:84
本文介绍了Android中的照片库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android中实现类似于Facebook的相册.

I am trying implement a photo gallery similar to facebook in Android.

我想知道在哪里可以找到有关如何执行此操作的信息.我意识到其中有些是使用动画完成的,例如,当您单击照片时,注释,共享以及下一个和上一个按钮都使用动画来实现.

I was wondering where I could look for information on how to do this. I realize some of it is done using animations for example when you click on a photo the comments, share and next and previous buttons are all implemented using animation.

推荐答案

我入侵了一个简单的 Android图片画廊,它位于 github 上.

I hacked a simple android image gallery, it's on github.

您实际上可以看一下并获取所需的代码,然后在其上构建更多功能.

You can actually take a look, and get those codes you want, then build on top of it for more features.

例如,您可以使用 SimpleOnGestureListener 来指定可以在单击事件中执行,也许显示共享,评论,浏览下一张/上一张照片等的选项.对于动画,您还可以添加

For example, you can use SimpleOnGestureListener to specify what to do on single tap event, maybe to show the options to share, comments, browse next/previous photo etc. For animation, you can also add View Animation as transition when showing the options.

希望有帮助!

这篇关于Android中的照片库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆