MotionEvent event = MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, mView.getLeft() + 5, mView.getTop() + 5, 0);
接著把它丟給要被"摸"的View
view.dispatchTouchEvent(event);
參考網址
http://blog.csdn.net/aminfo/article/details/7887964
沒有留言:
張貼留言