AdapterViewFlipper in app widget: setPendingIntentTemplate() and setOnClickFillInIntent() not working

喜夏-厌秋 提交于 2019-12-02 12:13:06

问题


I am changing a ListView in my app widget to an AdapterViewFlipper. The problem is, I need to handle a click on an item. It worked perfectly to set a pending intent template with setPendingIntentTemplate() to the whole ListView and set a fillInIntent with setOnClickFillInIntent() to each of its items. But now, with AdapterViewFlipper, it doesn't work anymore. Am I missing something?


回答1:


You must not call setOnClickFillInIntent() with the id of the item's root view. Use any child view instead.



来源:https://stackoverflow.com/questions/12958186/adapterviewflipper-in-app-widget-setpendingintenttemplate-and-setonclickfilli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!