AppWidgetHostView can't handle onClick/onLongClick properly

前端 未结 3 586
广开言路
广开言路 2020-12-04 02:36

I am developing a launcher, now I am working with app widgets, I follow the tutorial from here: AppWigetHost tutrial - Leonardo Fischer Everything goes well until I tried a

3条回答
  •  生来不讨喜
    2020-12-04 02:45

    I encountered the same problem,I solved it by overwriting the method

    ViewGroup#onInterceptTouchEvent(MotionEvent ev).
    

    See "Managing Touch Events in a ViewGroup" for detail.

提交回复
热议问题