aboutsummaryrefslogtreecommitdiff
path: root/sample/res/layout/extension_freehand_fragment.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sample/res/layout/extension_freehand_fragment.xml')
-rw-r--r--sample/res/layout/extension_freehand_fragment.xml76
1 files changed, 14 insertions, 62 deletions
diff --git a/sample/res/layout/extension_freehand_fragment.xml b/sample/res/layout/extension_freehand_fragment.xml
index 3dbab67..006aa0f 100644
--- a/sample/res/layout/extension_freehand_fragment.xml
+++ b/sample/res/layout/extension_freehand_fragment.xml
@@ -1,73 +1,25 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/content"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/fill">
- <RelativeLayout
- android:id="@+id/text"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:background="#333">
- <ImageView
- android:id="@+id/previous"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:background="@drawable/buttonstate_transparent"
- android:paddingLeft="8dp"
- android:paddingRight="8dp"
- android:paddingTop="18dp"
- android:paddingBottom="18dp"
- android:src="@drawable/previous"/>
+ <RelativeLayout style="@style/footer" android:id="@+id/footer">
- <ImageView
- android:id="@+id/next"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:background="@drawable/buttonstate_transparent"
- android:visibility="invisible"
- android:paddingLeft="8dp"
- android:paddingRight="8dp"
- android:paddingTop="18dp"
- android:paddingBottom="18dp"
- android:src="@drawable/next"/>
+ <ImageView style="@style/previousButton" android:id="@+id/previous" android:contentDescription="@string/button.previous"/>
- <ImageView
+ <ImageView style="@style/nextButton" android:id="@+id/next" android:contentDescription="@string/button.next" android:visibility="invisible"/>
+
+ <ImageView style="@style/footerButton"
android:id="@+id/reset"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toLeftOf="@id/next"
- android:layout_centerVertical="true"
- android:background="@drawable/buttonstate_transparent"
- android:paddingLeft="8dp"
- android:paddingRight="8dp"
- android:paddingTop="18dp"
- android:paddingBottom="18dp"
- android:src="@drawable/reset"/>
+ android:layout_toStartOf="@id/next"
+ android:src="@drawable/reset"
+ android:contentDescription="@string/button.reset"/>
- <TextView
+ <TextView style="@style/footerNote"
android:id="@+id/note"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_toLeftOf="@id/reset"
- android:layout_toRightOf="@id/previous"
- android:layout_centerVertical="true"
- android:text="This subclass adds event detection. Draw a freehand line; it will move with the image. (Due to a limitation in Android, your drawing may disappear when it's larger than 2048px.)"
- android:padding="10dp"
- android:textSize="14sp"
- android:textColor="#FFFFFF"/>
+ android:text="@string/extension.p3.text"
+ android:layout_toStartOf="@id/reset"
+ android:layout_toEndOf="@id/previous"/>
</RelativeLayout>
- <com.davemorrissey.labs.subscaleview.sample.extension.views.FreehandView
- android:id="@+id/imageView"
- android:layout_alignParentTop="true"
- android:layout_above="@+id/text"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
+ <com.davemorrissey.labs.subscaleview.sample.extension.views.FreehandView style="@style/mainPanel" android:id="@+id/imageView"/>
</RelativeLayout>