开发者

Implementing ImageViewTouch on Gallery

开发者 https://www.devze.com 2023-03-09 18:34 出处:网络
I have a code with a ImageViewTouch image that have pinch zoom, but i cant implement it on the gallery, i tried everything like setting in the ImageAdapter, it works but the Gallery wont scroll.

I have a code with a ImageViewTouch image that have pinch zoom, but i cant implement it on the gallery, i tried everything like setting in the ImageAdapter, it works but the Gallery wont scroll.

I think that another solution will be using a ImageSwitcher.

I ask if somebody have a code of a Gallery Implementing a ImageView extension with scroll enabled, or a ImageSwitcher with the开发者_如何转开发 Gallery scroll (No Animations).


The only thing I've found that works is to set an OnTouchListener on the Gallery itself, and then manually map the coordinates of the touch event to the underlying view with getLocationOnScreen.

0

精彩评论

暂无评论...
验证码 换一张
取 消