android - What is the currently focused component? -


i have activity , activity start new one. (the second) activity quite complex , point want know component (which widget) focused.

well problem have soft keyboard shown on devices (and same build of app starts activity b hidden keyboard).

is there command or snipped can find of component(widgets) has focus @ moment ?

edit: getcurrent focus return null :(

getcurrentfocus() on window of activity returned focused view. called getcurrentfocus in wrong place :).


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -