diff options
author | Joe Robinson <joe@lc8n.com> | 2014-08-04 02:17:22 +0100 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2014-08-13 23:23:03 +0100 |
commit | 65c1db9dc23517ceff0e11e767585de330f70964 (patch) | |
tree | c32f15920e56e81643bb81511a736c813740f05e /app/src/main/res/layout | |
parent | a5ca356e46df7e175c4c24a25b00c38c0954572f (diff) |
Added partially working image viewer with paging
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_image_pager.xml | 16 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_image_viewer.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_image_viewer.xml | 13 |
3 files changed, 36 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_image_pager.xml b/app/src/main/res/layout/activity_image_pager.xml new file mode 100644 index 0000000..74181fa --- /dev/null +++ b/app/src/main/res/layout/activity_image_pager.xml @@ -0,0 +1,16 @@ +<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" + 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> diff --git a/app/src/main/res/layout/activity_image_viewer.xml b/app/src/main/res/layout/activity_image_viewer.xml new file mode 100644 index 0000000..9eef971 --- /dev/null +++ b/app/src/main/res/layout/activity_image_viewer.xml @@ -0,0 +1,7 @@ +<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/pager" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context="uk.co.blatech.blaupload.ImageViewer"/>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_image_viewer.xml b/app/src/main/res/layout/fragment_image_viewer.xml new file mode 100644 index 0000000..d9f75fa --- /dev/null +++ b/app/src/main/res/layout/fragment_image_viewer.xml @@ -0,0 +1,13 @@ +<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" + tools:context="uk.co.blatech.blaupload.ImageViewer$PlaceholderFragment"> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/imageView" + android:layout_centerVertical="true" + android:layout_centerHorizontal="true" /> +</RelativeLayout> |