hasFocus is different from isFocused. hasFocus == true means that the View or one of his descendants is focused. If you look closely, there's a chain of hasFocused Views till you reach the View that isFocused.
The new HiearchyViewer that comes with Cupcake makes that more obvious by coloring the chain of "focused" views. On Sat, Apr 4, 2009 at 9:03 PM, Lucius Fox <[email protected]> wrote: > > When I look at all the views in HierarchyViewer, why there are > multiple views's 'hasFocus' is true? > I am under the assumption that only 1 view can have focus at a time. > If so, why there are multiple view's hasFocus be true? > > Thank you. > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

