Odd visual issue with ListView item layout with two pressable pieces
Posted
by
jnylen
on Stack Overflow
See other posts from Stack Overflow
or by jnylen
Published on 2011-01-15T03:02:04Z
Indexed on
2011/01/15
16:53 UTC
Read the original article
Hit count: 284
I wanted to make a ListView where the items have two pressable pieces, like the layouts that show up in a couple of places in the stock Android phone/contacts application:
I have the layout working fine, including handling events from each piece separately, except for a visual issue when the smaller piece is pressed. In my application the smaller piece only gets a small ellipse for the background when it is pressed, like this:
Note that is actually not my application - that is NubDial, but my application has the same problem. Since NubDial uses the exact same XML layout as the phone app, I'm not sure how relevant the list item layouts are, but here they are anyway:
Contacts list: contacts_list_item.xml
NubDial: contacts_list_item.xml
Does anybody know what might be happening there?
© Stack Overflow or respective owner