Android IME: is tehere a way to get or calc the cursor's absolute coordinates on screen -
i'm creating new ime android , want render floating ui depending on cursor's position. i've found if override onupdatecursoranchorinfo function of inputmethodservice (build version lollipop or later) can coordinates of cursor in edittext, if request updates like: inputconnection.requestcursorupdates(inputconnection.cursor_update_monitor)
.
but how can calc absolute coordinates of cursor (from top left corner) in ime?? there hack or solution this? please me! onupdatecursoranchorinfo
function if cannot use rendering view next cursor :( ?
this ime(keyboard) developer only. if app developer, may want try getselectionstart() method of textview or other input instead.
Comments
Post a Comment