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

StackOverflow https://stackoverflow.com/questions/12958186

문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top