开发者

android how todo onSingleTapUp outside my view

Maybe im probably all wrong about this.

Here goes..

I have the:

gestureScanner = new GestureDetector(this);

and i have the:

public boolean onSingleTapUp(MotionEvent e) {

The class is:

public class PhotoEditDrawView extends ImageView implements OnGestureListener {

In the onSingleTapUp im detecting tap's on 4 places on the screen

They are: Left bottom left middle right bottom right middle

I get click responses ok from all 4 locations if the Bitmap fills the screen.

I notice that if the loaded Bitmap is 开发者_开发技巧small the 4 click locations are inside the image, so to speak.

Hope you can follow this..

If the Bitmap is small I want to detect finger tap's outside the Bitmap(imageView)..

How can i do that in a sensibly way.

I was thinking of using GestureOverlayView. But it looks like it cannot detect tapping points.

Any ide?


answering my own question.
see my other post:
How can i detect tap on the screen?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜