Android的相册查看滚动的问题onClickListener的项目时给予项目、相册、问题、Android

由网友(待绾之人)分享简介:我在我的应用程序中使用的画廊。I have used gallery in my app.在我有两个图像,这样每家画廊的项目In that i have two images in each gallery item like this 每个兔和小鼠图像被合并为一个单一的库项目Each rabbit and m...

我在我的应用程序中使用的画廊。

I have used gallery in my app.

在我有两个图像,这样每家画廊的项目

In that i have two images in each gallery item like this

每个兔和小鼠图像被合并为一个单一的库项目

Each rabbit and mouse image is combined as a single gallery item.

所以,我给onclickListener为图像,但如果我给像我不能触摸这些图像......如果我删除onClickListener因为我能够滚动个别图像滚动。

So I give onclickListener for both images but if I give like that I can't scroll by touching those images... If I remove onClickListener for that individual images I am able to scroll.

如何归档两个涡旋和的onClick为每个图像。

How to archive both scroll and onClick for each images.

推荐答案

这answers你的问题。你必须让你的活动同时处理的onClick和手势。

This answers your question. You have to let your activity handle both onClick and Gestures.

阅读全文

相关推荐

最新文章