Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画面のどの部分でユーザーがタッチしたかを検出する方法を知りたいのですが、必ずしも具体的ではなく、画面の中点からの方向(NORTH、SOUTH、EAST、WEST)だけです。画面の向きにも影響しますか?横向きを使用しています。
タッチの座標(getX()&getY())を取得し、画面の中心点と比較します。これはあなたのタッチの「方向」についての良いヒントを与えるはずです。
私が質問を理解したことを願っています。JQCorreia