1.功能
1.画笔大小调整
2.画笔换色
3.清除画布
2.代码实现
xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/image"
android:background="@drawable/bg"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitXY"
/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="60dip"
android:layout_alignParentBottom="true"
>
<Button
android:id="@+id/red"