diff options
author | Joe Robinson <joe@lc8n.com> | 2014-08-13 23:13:52 +0100 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2014-08-13 23:23:22 +0100 |
commit | d2f7c8b9fb56eadac1a6406af8b9cc43cb99d15b (patch) | |
tree | 2a0d4f494a0b5fadc3a64f393ef655a95aa916e2 /app/src/main/res/layout | |
parent | 276e27febe8d0e97ce80d97f06ca62d951d54606 (diff) |
Added higher resolution image loading on zoom
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_image_pager.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/layout/image_pager_item.xml | 23 |
2 files changed, 27 insertions, 13 deletions
diff --git a/app/src/main/res/layout/activity_image_pager.xml b/app/src/main/res/layout/activity_image_pager.xml index 74181fa..fc75d13 100644 --- a/app/src/main/res/layout/activity_image_pager.xml +++ b/app/src/main/res/layout/activity_image_pager.xml @@ -1,16 +1,7 @@ -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<uk.co.blatech.blaupload.ui.ZoomViewPager + xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/imagePager" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingLeft="@dimen/activity_horizontal_margin" - android:paddingRight="@dimen/activity_horizontal_margin" - android:paddingTop="@dimen/activity_vertical_margin" - android:paddingBottom="@dimen/activity_vertical_margin" - tools:context="uk.co.blatech.blaupload.ImagePager"> - - <TextView - android:text="@string/hello_world" - android:layout_width="wrap_content" - android:layout_height="wrap_content" /> - -</RelativeLayout> + tools:context="uk.co.blatech.blaupload.ImagePager"/>
\ No newline at end of file diff --git a/app/src/main/res/layout/image_pager_item.xml b/app/src/main/res/layout/image_pager_item.xml new file mode 100644 index 0000000..26d8083 --- /dev/null +++ b/app/src/main/res/layout/image_pager_item.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="1dip" > + <uk.co.blatech.blaupload.ui.TouchImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/imageView" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + <uk.co.blatech.blaupload.ui.TouchImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/zoomImageView" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:visibility="gone"/> + +</FrameLayout>
\ No newline at end of file |