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

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -