How to correctly handle click events on Widget

Posted by www.liveinternet.ruusersilya_bog on Stack Overflow See other posts from Stack Overflow or by www.liveinternet.ruusersilya_bog
Published on 2010-05-09T14:40:31Z Indexed on 2010/05/09 14:48 UTC
Read the original article Hit count: 223

Filed under:
|

There is a task to make smt like todo list on widget (with dinamic number of elements), how to organize this list for click support on this elements. I only found how add click event on one widget layout element (with setOnClickPendingIntent), and how send text to widget element TextView.

But it's unclear how handle click events for sub-elemets, or how get click coordinates(or item) where was click event. I saw widget "Agenda widget" - and it work fine with clicking on different calendar rows.

I will be very much appreciated for help.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-widget