AppWidgetHostView can't handle onClick/onLongClick properly

前端 未结 3 587
广开言路
广开言路 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:44

    after some days without any answer from SO, I tried to read the source code of Trebuchet-launcher It turns out very simple: extends the AppWidgetHostView and override the method onInterceptTouchEvent() like this source code - I haven't tried it yet, but I guess it will work :).

    Hope this helps anyone like me :)

提交回复
热议问题