How to highlight clicks in app widget?

Posted by steff on Stack Overflow See other posts from Stack Overflow or by steff
Published on 2010-04-29T19:52:06Z Indexed on 2010/04/29 19:57 UTC
Read the original article Hit count: 454

Filed under:
|
|
|

Hi everyone,

I have an app widget which runs neatly. However, I am unable to highlight a click on a linked item. I've seen it in the standard app widgets like 'Music' and 'Power Control', for instance. Moreover, I've also been studying the Music app widget's source at album_appwidget.xml. The only thing I could think of is the LinearLayout defined at lines 23-35 which states
android:clickable="true"
Unfortunately, this does not work for me. So does anyone have a hint on how to highlight a click on an app widget? I've tried the LinearLayout, TextView and Button. None of them displayed a border as a highlight.

Thanks in advance, Steff

© Stack Overflow or respective owner

Related posts about android

Related posts about appwidget