case MotionEvent.ACTION_MOVE: float lastdis=-1; // System.out.println("move"); // System.out.println(String.format("x:%f,y:%f",event.getX(),event.getY())); //移动图片 FrameLayout.LayoutParams fl=(FrameLayout.LayoutParams)imageView.getLayoutParams(); fl.leftMargin=(int)
android studio onTouch触摸事件
最新推荐文章于 2024-07-07 21:03:48 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)