From 272474e7ff4fb3d48ada11934bf1c814e2a8aec8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= <tomasz.polgrabia@gmail.com>
Date: Sat, 22 Oct 2016 23:19:05 +0200
Subject: [PATCH] Refactoring panoramio image preview fragment layout

---
 .../res/layout/fragment_panoramio_shower.xml  | 56 ++++++++-----------
 1 file changed, 22 insertions(+), 34 deletions(-)

diff --git a/app/src/main/res/layout/fragment_panoramio_shower.xml b/app/src/main/res/layout/fragment_panoramio_shower.xml
index 5d690b3..0543990 100644
--- a/app/src/main/res/layout/fragment_panoramio_shower.xml
+++ b/app/src/main/res/layout/fragment_panoramio_shower.xml
@@ -12,60 +12,48 @@
                android:layout_weight="1"/>
 
     <LinearLayout android:layout_width="match_parent"
-                  android:layout_height="wrap_content">
-        <TextView android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
-                  android:text="@string/title_label"/>
+                  android:orientation="horizontal">
 
         <TextView android:id="@+id/photo_title"
                   android:layout_width="wrap_content"
-                  android:layout_height="wrap_content"/>
+                  android:layout_height="wrap_content"
+                  android:text="@string/test_string"/>
+
+        <Space android:layout_width="0dp"
+               android:layout_height="0dp"
+               android:layout_weight="1" />
+
+        <TextView android:id="@+id/photo_upload"
+                  android:layout_width="wrap_content"
+                  android:layout_height="wrap_content"
+                  android:text="@string/test_string"/>
     </LinearLayout>
 
     <LinearLayout android:layout_width="match_parent"
-                  android:layout_height="wrap_content">
-        <TextView android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
-                  android:text="@string/author_label"/>
+                  android:orientation="horizontal">
 
         <TextView android:id="@+id/photo_author"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"/>
-    </LinearLayout>
 
-    <LinearLayout android:layout_width="match_parent"
-                  android:layout_height="wrap_content">
-        <TextView android:layout_width="wrap_content"
-                  android:layout_height="wrap_content"
-                  android:text="@string/upload_date_label"/>
-
-        <TextView android:id="@+id/photo_upload"
-                  android:layout_width="wrap_content"
-                  android:layout_height="wrap_content"/>
-    </LinearLayout>
-
-    <LinearLayout android:layout_width="match_parent"
-                  android:layout_height="wrap_content">
-        <TextView android:layout_width="wrap_content"
-                  android:layout_height="wrap_content"
-                  android:text="@string/location_label"/>
+        <Space android:layout_width="0dp"
+               android:layout_height="0dp"
+               android:layout_weight="1" />
 
         <TextView android:id="@+id/photo_location"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:textColor="@color/blue"/>
+
+
     </LinearLayout>
 
-    <LinearLayout android:layout_width="match_parent"
-                  android:layout_height="wrap_content">
-        <TextView android:layout_width="wrap_content"
-                  android:layout_height="wrap_content"
-                  android:text="@string/panoramio_url"/>
-
-        <TextView android:id="@+id/photo_url"
-                  android:layout_width="wrap_content"
-                  android:layout_height="wrap_content"/>
-    </LinearLayout>
+    <TextView android:id="@+id/photo_url"
+              android:layout_width="wrap_content"
+              android:layout_height="wrap_content"
+              android:layout_gravity="center_horizontal"/>
 
 </LinearLayout>