onTouch(MotionEvent event){
int x = (int) event.getX();
int y = (int) event.getY();
if(event.getAction==MotionEvent.DOWN){
temp_point = new ArrayList<Point>();
temp_point.add(new Point(x,y);
}else if(event.getAction==MotionEvent.MOVE){
if(temp_point!=null)
temp_point.add(new Point(x,y);
}else if(event.getAction==MotionEvent.UP){
mainPoint.add(temp_point);
temp_point = null;
}
return true;
で元に戻すかする方法を私はキャンバスを使用してペイントをしています。私はペイントを消去することができますが、私はペイントした最後のペイントを元に戻すことができません。
元に戻す_what_? – Nailuj
あなたは何をしようとしています...あなたの問題を説明してください... –