From 8a1acefb213ec4028e3b4ed684939e935244faf3 Mon Sep 17 00:00:00 2001 From: DjBushido Date: Mon, 24 Mar 2014 14:41:32 -0400 Subject: [PATCH] Add (almost) everything for the ImageViewer activity Still needs gesture recognition --- HW4/res/layout/activity_image_viewer.xml | 33 ++++++++------- HW4/res/values/colors.xml | 19 +++++++++ .../com/example/hw4/ImageViewerActivity.java | 41 ++++++++++++++++--- 3 files changed, 70 insertions(+), 23 deletions(-) create mode 100644 HW4/res/values/colors.xml diff --git a/HW4/res/layout/activity_image_viewer.xml b/HW4/res/layout/activity_image_viewer.xml index e4a7da6..3748216 100644 --- a/HW4/res/layout/activity_image_viewer.xml +++ b/HW4/res/layout/activity_image_viewer.xml @@ -1,7 +1,9 @@ - + android:id="@+id/imgViewer" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_gravity="center_horizontal" + android:scaleType="centerInside" /> + android:layout_gravity="bottom" >