1<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" 3 android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" 4 android:paddingRight="@dimen/activity_horizontal_margin" 5 android:paddingTop="@dimen/activity_vertical_margin" 6 android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> 7 8 <FrameLayout 9 android:layout_width="match_parent" 10 android:layout_height="match_parent" 11 android:layout_above="@+id/button" > 12 <ImageView 13 android:id="@+id/imageview" 14 android:layout_width="match_parent" 15 android:layout_height="match_parent" 16 android:background="#333" 17 android:scaleType="matrix" /> 18 19 <rs.example.android.com.healingbrush.DrawView 20 android:id="@+id/overlay" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" /> 23 </FrameLayout> 24 25 <Button 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:text="Heal" 29 android:onClick="heal" 30 android:id="@+id/button" 31 android:layout_alignParentBottom="true" 32 android:layout_alignParentLeft="true" 33 android:layout_alignParentStart="true" /> 34 35 <Button 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:text="Undo" 39 android:onClick="undo" 40 android:id="@+id/button2" 41 android:layout_alignParentBottom="true" 42 android:layout_centerHorizontal="true" /> 43 44 <Button 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:text="Save" 48 android:onClick="save" 49 android:id="@+id/button3" 50 android:layout_alignParentBottom="true" 51 android:layout_alignParentRight="true" 52 android:layout_alignParentEnd="true" /> 53 54</RelativeLayout> 55