LinearLayout is not focusable so it cannot get onFocusChanged(). On Tue, Mar 3, 2009 at 2:57 PM, ying lcs <[email protected]> wrote: > > Hi, > > I have over-loaded the onFocusChanged() in my classes which inherits > from LinearLayout. > > protected void onFocusChanged(boolean gainFocus, int direction, > Rect previouslyFocusedRect) { > super.onFocusChanged(gainFocus, direction, previouslyFocusedRect); > } > > My question is when does onFocusChanged() get called? In this > over-loaded implementation, I set a breakpoint, but it never breaks > there. I have repeated pressing UP/DOWN key, but it never breaks at > that line > > Thank you for any pointers. > > > >
-- 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 -~----------~----~----~----~------~----~------~--~---

