I extend my class from View. and I override onTouchEvent function. But, I can get only ACTION_DOWN event. not any ACTION_UP or ACTION_MOVE. what should I do to get that events ?
I override only onTouchEvent and onDraw function. and there is only this view in application
@Override
public boolean onTouchEvent(MotionEvent event) {
System.out.println("event:"+event.getAction());
return super.onTouchEvent(event);
}
Possibly you need to return
trueinstead of returning thesuperevent. That means that you handled that event, and thus you can receive the next one.