Description: A drawing software, you can draw a straight line, rectangle, circle, triangle, cube, cylinder. Straight line can be extended, shortened, drag rectangle, circle, triangle needs to be able to drag, change the size of.
Realization way:
A main view class (a custom view), in the main view class defines a unified paint, bitmap, canvas, as well as the sub class needs to use the 3 points movePoint, downPoint, upPoint.
Other sub categories (drawing a straight line of view, drawing rectangle view) are inherited the main view class.
To Search:
File list (Check if you may need any files):
DrawDemo01
..........\.classpath
..........\.project
..........\.settings
..........\.........\org.eclipse.jdt.core.prefs
..........\AndroidManifest.xml
..........\assets
..........\bin
..........\...\AndroidManifest.xml
..........\...\classes
..........\...\.......\com
..........\...\.......\...\hsense
..........\...\.......\...\......\drawdemo01
..........\...\.......\...\......\..........\BuildConfig.class
..........\...\.......\...\......\..........\Draw_Circle.class
..........\...\.......\...\......\..........\Draw_Column.class
..........\...\.......\...\......\..........\Draw_Cube.class
..........\...\.......\...\......\..........\Draw_Line.class
..........\...\.......\...\......\..........\Draw_Path.class
..........\...\.......\...\......\..........\Draw_Rectangle.class
..........\...\.......\...\......\..........\Draw_triangle.class
..........\...\.......\...\......\..........\MainActivity$1$1.class
..........\...\.......\...\......\..........\MainActivity$1.class
..........\...\.......\...\......\..........\MainActivity.class
..........\...\.......\...\......\..........\MyDraw.class
..........\...\.......\...\......\..........\R$attr.class
..........\...\.......\...\......\..........\R$dimen.class
..........\...\.......\...\......\..........\R$drawable.class
..........\...\.......\...\......\..........\R$id.class
..........\...\.......\...\......\..........\R$layout.class
..........\...\.......\...\......\..........\R$menu.class
..........\...\.......\...\......\..........\R$string.class
..........\...\.......\...\......\..........\R$style.class
..........\...\.......\...\......\..........\R.class
..........\...\classes.dex
..........\...\DrawDemo01.apk
..........\...\res
..........\...\...\drawable-hdpi
..........\...\...\.............\ic_action_search.png
..........\...\...\.............\ic_launcher.png
..........\...\...\drawable-mdpi
..........\...\...\.............\drawable-ldpi
..........\...\...\.............\.............\ic_launcher.png
..........\...\...\.............\ic_action_search.png
..........\...\...\.............\ic_launcher.png
..........\...\...\drawable-xhdpi
..........\...\...\..............\ic_action_search.png
..........\...\...\..............\ic_launcher.png
..........\...\resources.ap_
..........\gen
..........\...\com
..........\...\...\hsense
..........\...\...\......\drawdemo01
..........\...\...\......\..........\BuildConfig.java
..........\...\...\......\..........\R.java
..........\ic_launcher-web.png
..........\libs
..........\....\achartengine-1.0.0.jar
..........\....\android-support-v4.jar
..........\proguard-project.txt
..........\project.properties
..........\res
..........\...\drawable-hdpi
..........\...\.............\ic_action_search.png
..........\...\.............\ic_launcher.png
..........\...\drawable-mdpi
..........\...\.............\drawable-ldpi
..........\...\.............\.............\ic_launcher.png
..........\...\.............\ic_action_search.png
..........\...\.............\ic_launcher.png
..........\...\drawable-xhdpi
..........\...\..............\ic_action_search.png
..........\...\..............\ic_launcher.png
..........\...\layout
..........\...\......\activity_main.xml
..........\...\menu
..........\...\....\activity_main.xml
..........\...\values
..........\...\......\dimens.xml
..........\...\......\strings.xml
..........\...\......\styles.xml
..........\...\values-large
..........\...\............\dimens.xml
..........\src
..........\...\com
..........\...\...\hsense
..........\...\...\......\drawdemo01
..........\...\...\......\..........\Draw_Circle.java
..........\...\...\......\..........\Draw_Column.java
..........\...\...\......\..........\Draw_Cube.java
..........\...\...\......\..........\Draw_Line.java
..........\...\...\......\..........\Draw_Path.java
..........\...\...\......\..........\Draw_Rectangle.java
..........\...\...\......\..........\Draw_triangle.java
..........\...\...\......\..........\MainActivity.java
..........\...\...\......\..........\MyDraw.java
..........\说明.htm