Hi,

In a ListView, items can either have focus (they are focused
themselves or contain a focused child) *or* be selected. They cannot
be both at the same time. If you *really* want to do this (which I
don't recommend), you can use a special XML attribute to tell the item
to copy its children state. This way, when the button is focused, the
item gets focused too.

On Wed, Aug 27, 2008 at 8:08 AM, marielisacr <[EMAIL PROTECTED]> wrote:
>
> Hi, I am working in an application that have several ListView.
>
> Here is the thing, I have a ListView and every row have a button and
> some text. I need that both events, push the button and select one
> row, can be handler. I mean if I press the button make some things and
> if I select one row make another things.
>
> The problem is that I can't move through the ListView with the touch
> and keyboards  capabilities. The item can't be selected in touch mode,
> I mean, I can't select the row, if I click the row item and it does
> nothing. If I click the button and it responds fine. And I have no way
> to press the button by keyboard. In my ListView I also have a
> footerView.
>
> If I use setItemsCanFocus(true) there is no way to press the Item, no
> through keyboard, no through touch, just the button.
>
> I am using SDK 0.9.
>
> I have a short example that shows what is happen. If you need it let
> me know and I will post it.
>
> I hope someone can hel me, thanks
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to