java - cursor won't change in edittext -
so have edittext, (two actually, both have same problem,) , added ontouchlistener. need know edittext i'm working method. problem is, before adding listener, if clicked somewhere in edittext, cursor update. cursor won't update @ all.
edittext.setontouchlistener(new view.ontouchlistener() { @suppresswarnings("unusedassignment") @override public boolean ontouch(view v, motionevent event) { edittext et = (edittext) v; et.requestfocus(); return true; } });
in case, best return false
in ontouch
. because return value specifies whether or not listener consumes event. returning false should therefore allow widget respond touch event normal behaviour, in addition whatever else have specified.
Comments
Post a Comment