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 2012-01-27 13:05:25
你想要做什麼...請描述你的問題... – 2012-01-27 13:48:55