画面上のポイントに同時にタッチすると、2つの正しい座標ポイントのセットを取得できることを知りたいです。はいの場合、これをどのように使用できますか。グーグルで検索しましたが、満足のいく結果が得られませんでした。助けてください。
			
			1573 次
		
1 に答える
            0        
        
		
getX と getY の代わりに、次の 2 つのメソッドを使用します。
public final float getX (int pointerIndex)
        Since: API Level 5
        Returns the X coordinate of this event for the given pointer index (use getPointerId(int) to find the pointer identifier for this index). Whole numbers are pixels; the value may have a fraction for input devices that are sub-pixel precise.
public final float getY (int pointerIndex)
        Since: API Level 5
        Returns the Y coordinate of this event for the given pointer index (use getPointerId(int) to find the pointer identifier for this index). Whole numbers are pixels; the value may have a fraction for input devices that are sub-pixel precise.
        Parameters
        pointerIndex    Raw index of pointer to retrieve. Value may be from 0 (the first pointer that is down) to getPointerCount()-1.
于 2012-09-07T11:53:40.207   に答える