应用程序窗口小部件中的AdapterViewFlipper:setPendingIntentTemplate()和setOnClickFillInIntent()无法正常工作

时间:2012-10-18 15:27:01

标签: android android-adapterview android-appwidget

我正在将app小部件中的ListView更改为AdapterViewFlipper。问题是,我需要处理项目上的点击。它完美地将setPendingIntentTemplate()的待定意图模板设置到整个ListView,并使用setOnClickFillInIntent()为每个项设置fillInIntent。但现在,使用AdapterViewFlipper,它不再起作用了。我错过了什么吗?

1 个答案:

答案 0 :(得分:10)

您不能使用项目根视图的id调用setOnClickFillInIntent()。改为使用任何子视图。