3
我一直在收到top, bottom, left, right = 0
。我想我做错了,什么是正确的方法? TIAgethitRect(),我做错了,这是如何工作的?
在onCreate()
ImageView trash = (ImageView) findViewById(R.id.dropTarget_trash);
trash.setOnTouchListener(this);
Rect trashHit = new Rect();
trash.getHitRect(trashHit);
Log.d(TAG,"Trash left:" + trashHit.left + " right: " + trashHit.right + " top: " + trashHit.top + " bottom: " + trashHit.bottom);