AdapterViewFlipper的应用程序插件:setPendingIntentTemplate()和setOnClickFillInIntent()不工作 [英] AdapterViewFlipper in app widget: setPendingIntentTemplate() and setOnClickFillInIntent() not working

查看:2155
本文介绍了AdapterViewFlipper的应用程序插件:setPendingIntentTemplate()和setOnClickFillInIntent()不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我改变一个ListView我的应用程序窗口小部件的AdapterViewFlipper。问题是,我需要处理一个项目的点击。它的工作完美地设置一个悬而未决的意图模板setPendingIntentTemplate()整个ListView和设置setOnClickFillInIntent()一个fillInIntent到它的每一个项目。但是现在,随着AdapterViewFlipper,它不工作了。我失去了一些东西?

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?

推荐答案

您不能调用setOnClickFillInIntent()与项目的根视图的ID。使用任何子视图来代替。

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

这篇关于AdapterViewFlipper的应用程序插件:setPendingIntentTemplate()和setOnClickFillInIntent()不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆