开始处理手势事件
我是安卓新手。我刚刚浏览了我的幻灯片应用程序。
我想像 Facebook 应用程序一样使用触摸事件制作图像幻灯片。当我们单击图像并将其向左滑动时,会显示新图像;当我们向右滑动手指时,会显示最后一个旧图像。
我不知道这是如何运作的以及如何开始。在这种情况下,有人可以帮助我开始提供教程和提示吗?
我只是想要图像上的效果。
I have been new to android. I have just gone through my slideshow app.
I want to make image slide using touch event just like facebook app. when we click on image and swipe it to left then new image shown and when swipe finger towards right then last old image is shown.
I don't know how this works and how to start with it. Can any one help me in this case to start with like providing tutorials and tips ?
I just want effect on the image.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
处理简单的触摸事件的工作原理如下:
祝你好运!
Handling simple touch events works the following:
Good Luck!
您可能需要两条信息。首先,你所说的就是画廊。有几个关于如何使用图库的很好的示例,基本思想是您获得一个 BaseAdapter 类,该类获取视图并将其附加到图库。请参阅本教程作为示例,或者只是谷歌Android Gallery示例,您会发现很多例子。
第二个是手势编程。看看本教程< /a> 了解更多信息
There's two bits of information that you might want. The first thing is, what you are referring to is called a gallery. There's several great examples of how to use a gallery, the basic idea is you get a BaseAdapter Class that gets the view and attach it to the gallery. See this tutorial for an example, or just google Android Gallery Example, you'll find alot of examples.
The second is gesture programming. Take a look at this tutorial for more information