aboutsummaryrefslogtreecommitdiff
path: root/sample/res/layout/imagedisplay_large_fragment.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sample/res/layout/imagedisplay_large_fragment.xml')
-rw-r--r--sample/res/layout/imagedisplay_large_fragment.xml61
1 files changed, 10 insertions, 51 deletions
diff --git a/sample/res/layout/imagedisplay_large_fragment.xml b/sample/res/layout/imagedisplay_large_fragment.xml
index ed09b9c..442fc67 100644
--- a/sample/res/layout/imagedisplay_large_fragment.xml
+++ b/sample/res/layout/imagedisplay_large_fragment.xml
@@ -1,60 +1,19 @@
-<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:visibility="invisible"
- 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: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" android:visibility="invisible"/>
- <TextView
+ <ImageView style="@style/nextButton" android:id="@+id/next" android:contentDescription="@string/button.next"/>
+
+ <TextView style="@style/footerNote"
android:id="@+id/note"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_toLeftOf="@id/next"
- android:layout_toRightOf="@id/previous"
- android:layout_centerVertical="true"
- android:text="This image is 7,557 x 5,669 pixels. On most devices it will be subsampled, and higher quality tiles are loaded as you zoom in."
- android:padding="10dp"
- android:textSize="14sp"
- android:textColor="#FFFFFF"/>
+ android:text="@string/display.p1.text"
+ android:layout_toStartOf="@id/next"
+ android:layout_toEndOf="@id/previous"/>
</RelativeLayout>
- <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
- 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.SubsamplingScaleImageView style="@style/mainPanel" android:id="@+id/imageView"/>
</RelativeLayout>