-- 原來的訊息--
主題: [android-developers] Re: ListActivity: items with a button
由: mafro <[email protected]>
日期: 20/07/2009 20:10


All I had to do was add android:clickable="true" to the button XML
definition. This allowed the button to have its own clicks, and
maintain the listitem click as it was.


On Jul 18, 6:29 pm, BoD <[email protected]> wrote:
> Hi!
> I'm sure this is a classic question, but I couldn't find the answer
> anywhere.
>
> I'm trying to have a ListActivity whose items feature a button.
> As soon as I include the button on my item layout, the rows are no
> longer selectable.
>
> Any pointers to tutorials or sample code would be much appreciated!
>
> Thanks.
>
> BoD



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to