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


Other Threads

1. Getting LinearLayout to wrap contents

Hi,

I've got a horizontal LinearLayout that contains a variable number of
child LinearLayouts. Right now, the children will just run off the
screen if there are too many of them.

How would I make the parent layout wrap the children on multiple
lines? If this is not possible, should I be using a different layout
as the parent?

Thanks!

-- 

2. webkit onGestureXXX


Is there any plans to support the onGestureXXX set of events
like the iPhone's webkit has?

Mike, curious

--

3. Does the Market use minSdkVersion or "Project Build Target"?

4. Does the Market use minSdkVersion or "Project Build Target"?

5. Informational: are there any charting packages for Android

6. Please help,,,:(,,,conferencing

7. onClickListener of a view