Simple routine to get the focused (normally EditText) view:
GetFocused:
Sub GetFocused() as View
Dim jo As JavaObject
Dim vw As View
jo.InitializeContext
Dim window As JavaObject = jo.RunMethodJO("getWindow", Null)
vw=window.RunMethod("getCurrentFocus",Null)
Return vw
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.