2012-03-05 15 views

答えて

6

yourView.dispatchTouchEvent(MotionEvent.obtain);

+1

取得メソッドの引数を渡すことができますか? – Gaurav

+0

@gauravこれを参照してください:http://developer.android.com/reference/android/view/MotionEvent.html取得メソッドを検索し、そのパラメータを探し、適切なメソッドを選択します。 –

+0

'' 'get(long downTime、long eventTime、int action、int pointerCount、PointerProperties [] pointerProperties、PointerCoords [] pointerCoords、int metaState、int buttonState、float xPrecision、float yPrecision、intデバイスID、int edgeFlags、intソース、intフラグ) '' 'LOL!私はparamsに怒っている。 –

関連する問題