ListView row not receiving highlight with ImageButton in row

by fg1921 » Fri, 10 Apr 2009 04:21:53 GMT


Sponsored Links
 Hi

This must be something very simple but I've tried almost everything
and still can't get this to work.

Basically I've made a custom LinearLayout view with a TextView and an
ImageButton to be used as a row for a ListView. The moment I use an
ImageButton tapping on the row does not highlight the row any more.
Moreover, I can't 'focus' the rows using the trackball, nor can I set
focus on the button.

If I remove the ImageButton and replace with an ImageView, the Row
highlight/selection works. How can I get row selection/highlight along
with ImageButton highlight at the same time?

Many thanks!
--~--~---------~--~----~------------~-------~--~----~



ListView row not receiving highlight with ImageButton in row

by fg1921 » Fri, 10 Apr 2009 07:34:51 GMT


 Ok I can see setting it to non-focusable 'solves' the problem but
that's not really what I was hoping to do. Well, too bad, the user
can't focus but only tap now.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links