GestureDetector 手勢識別器

手勢識別器GestureDetector的實際使用:     1.自定義一個類,繼承Activity,重寫onCreate方法;     2.在onCreate方法中,直接 new 一個GeatureDetector,使用兩個參數的那個 ,參1:上下文;參2:監聽者     3.在onCreate方法中重寫onTouchEvent方法,由於手勢識別器識別的手勢要在onTouchEvent方法中被執
相關文章
相關標籤/搜索