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