ListView will not give focus to its items, unless there is a focusable
element (for instance a button) in one of the said items. The items
themselves don't get focused, they get *selected*.

On Fri, Jun 20, 2008 at 11:18 AM, Bruno Sauer <[EMAIL PROTECTED]> wrote:
> is there a trick to "force focus" on a list item? I've been playing around
> with these statements:
>
>         // try to get focus
>         siteListView.setFocusType( View.WEAK_FOCUS );   // View.NORMAL_FOCUS
>         siteListView.setFocusable( true );
>         boolean tookFocus = siteListView.requestFocus();
>
> and 'tookFocus' appears (at the moment) to be a random act.
>
> I haven't wasted much time on this but hope someone has got some tips  -
> there's also an EditText in the picture and I've got a suspicion that it's
> not "giving up" the focus - perhaps that should be "disabled"?
>
> >
>



-- 
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to