我有以下情况:我有一个带有ImageView和TextView的自定义ListView。ImageView有一个onTouchListener,它调用我的onTouch方法。以下是其中的一些内容:if(event.getAction()==MotionEvent.ACTION_MOVE){layout.leftMargin=(int)event.getX()-dragIcon.getWidth()/2;layout.topMargin=(int)event.getY()-dragIcon.getHeight()/2;//Log.d("Tag","Pozycja:"+event.getX