ListView row not receiving highlight with ImageButton in row

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

Sponsored Links

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. Contact Provider across applications

My app1 accesses a content provider provided by app2. Do I need to set
any permissions in app2 so that app1 can access it?

Also, when app1 is trying to query the content, app2 will not be
running at the moment. Does the Android system automatically start
app2, calll its onCreate() method and then invoke the provider? Can
someone point me to the lifecycle here?



2. XML file parsing (big size xml file) throws IOException

When I try to load a big XML file (1.2 MB), XMLPullParser throws
It runs perfectly for small files..Please help..Is ther anyway to
increase application buffer size??


3. Secrity with SlideMe

4. Android SDK /

5. Recipients editor

6. How to textview on MapView instead of a drawable image by ItemizedOverlay?

7. Fwd: Socket node and Session Controller node