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.
pinchzoomでimageviewを使用しています。しかし、SDKバージョン4では使用できません。ACTION_POINTER_UP、get(0)およびMotionEvent.ACTION_MASKでエラーが発生します。最小SDKが5に設定され、APIレベル5のGoogle APIが選択されている場合は、正常に機能します。
私の質問は 、google api[レベル4]でACTION_POINTER_UPをトリガーできますか?
問題は、マルチタッチがAPI 5以降であるということです。API4では、get(0)の代わりにget()を呼び出すことで1つのポインターしか取得できません。また、API 4では、ACTION_POINTER_UPはなく、ACTION_UPのみです。