graphics - Android: Moving a View with onTouch has definite lag -
    i'm coming learning curve on android, @ moment working on user interface details. 1 of basic things trying moving around on screen finger. seems fundamental thing do.   i started relativelayout (rl), created 100x100 view has contrasting background color (intentionally simple, low graphics overhead) , add view rl. using view.setx , view.sety can move view around fine.   next, added ontouchlistener view , used resulting .getrawx , .getrawy values move view. works - there definite lag. expected view stay right under finger trails behind. it's noticeable.   edit: here's ontouch code:       public boolean  ontouch(view v,motionevent event) {          boolean bexitvalue = true;         int     iaction;          iaction = event.getactionmasked();          if (motionevent.action_move == iaction) {             v.setx(event.getrawx());             v.sety(event.getrawy());         }          else if (motionevent.action_down != iaction) {             bexitvalue = false;         }  ...