Align the licence info

Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/commit/94ba319e
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/tree/94ba319e
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/diff/94ba319e

Branch: refs/heads/master
Commit: 94ba319eb3491ae302cf695037f6e5d71810abaa
Parents: d760024
Author: Ian Dunlop <ian.dun...@manchester.ac.uk>
Authored: Wed Oct 12 13:27:58 2016 +0100
Committer: Ian Dunlop <ian.dun...@manchester.ac.uk>
Committed: Wed Oct 12 13:27:58 2016 +0100

----------------------------------------------------------------------
 app/src/main/res/layout/fragment_licence.xml | 48 ++++++++++++-----------
 1 file changed, 26 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/94ba319e/app/src/main/res/layout/fragment_licence.xml
----------------------------------------------------------------------
diff --git a/app/src/main/res/layout/fragment_licence.xml 
b/app/src/main/res/layout/fragment_licence.xml
index c1fdb6a..a155813 100644
--- a/app/src/main/res/layout/fragment_licence.xml
+++ b/app/src/main/res/layout/fragment_licence.xml
@@ -2,34 +2,38 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
-    android:orientation="horizontal">
+    android:orientation="vertical">
 
         <TextView
             android:id="@+id/licence_name"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_margin="@dimen/text_margin"
-            android:layout_toLeftOf="@+id/licence_version"
-            android:layout_weight="40"
-            android:gravity="center_horizontal"
-            android:textAppearance="?attr/textAppearanceListItem" />
-
-        <TextView
-            android:id="@+id/licence_version"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_margin="@dimen/text_margin"
-            android:layout_toLeftOf="@+id/licence_licence"
-            android:layout_weight="20"
-            android:gravity="center_horizontal"
+            android:layout_gravity="center_horizontal"
             android:textAppearance="?attr/textAppearanceListItem" />
+<LinearLayout
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:orientation="horizontal"
+    android:layout_weight="1">
+    <TextView
+        android:id="@+id/licence_version"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_margin="@dimen/text_margin"
+        android:layout_weight="50"
+        android:layout_gravity="left"
+        android:gravity="left"
+        android:textAppearance="?attr/textAppearanceListItem" />
 
-        <TextView
-            android:id="@+id/licence_licence"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_margin="@dimen/text_margin"
-            android:layout_weight="20"
-            android:gravity="center_horizontal"
-            android:textAppearance="?attr/textAppearanceListItem" />
+    <TextView
+        android:id="@+id/licence_licence"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_margin="@dimen/text_margin"
+        android:layout_weight="50"
+        android:layout_gravity="right"
+        android:gravity="right"
+        android:textAppearance="?attr/textAppearanceListItem" />
+</LinearLayout>
 </LinearLayout>
\ No newline at end of file

Reply via email to