文件名称:利用DrawView画图
文件大小:47KB
文件格式:ZIP
更新时间:2015-06-26 09:25:52
DrawView
貌似游戏你画我猜的那样。 public boolean onTouch(View arg0, MotionEvent event) { // TODO Auto-generated method stub switch (event.getAction()) { case MotionEvent.ACTION_MOVE: path.lineTo(event.getX(),event.getY()); Draw(); break; case MotionEvent.ACTION_DOWN: paint.setStyle(Style.STROKE); paint.setColor(Color.GREEN); paint.setAntiAlias(true);//抗锯齿 path.moveTo(event.getX(), event.getY()); break; } return true; }
【文件预览】:
Android_DrawView
----.project(852B)
----project.properties(562B)
----src()
--------com()
----AndroidManifest.xml(735B)
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------drawable-mdpi()
--------layout()
--------drawable-xhdpi()
--------values()
----assets()
----gen()
--------com()
----.classpath(364B)
----proguard-project.txt(781B)
----bin()
--------classes()
--------jarlist.cache(119B)
--------res()