]> Pileus Git - ~andy/freeotp/commitdiff
Add ScrollView to about dialog
authorNathaniel McCallum <npmccallum@redhat.com>
Wed, 4 Dec 2013 21:58:01 +0000 (16:58 -0500)
committerNathaniel McCallum <npmccallum@redhat.com>
Wed, 4 Dec 2013 21:58:01 +0000 (16:58 -0500)
res/layout/about.xml

index 5eb66cfe05bbfd8f293dc41ef511279857f116be..faab9f8e5189cc1452bbe5d4e0f235061d25a6fa 100644 (file)
@@ -1,40 +1,44 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:orientation="vertical"
-    android:padding="16dp" >
-    <TextView
-        android:id="@+id/about_version"
+    android:layout_height="match_parent">
+    <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:textSize="18sp"
-        android:textStyle="bold"
-        android:text="@string/about_version" />
+        android:orientation="vertical"
+        android:padding="16dp" >
+        <TextView
+            android:id="@+id/about_version"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:textSize="18sp"
+            android:textStyle="bold"
+            android:text="@string/about_version" />
 
-    <TextView
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:text="@string/about_copyright"/>
+        <TextView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:text="@string/about_copyright"/>
 
-    <TextView
-        android:id="@+id/about_license"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="16dp"
-        android:text="@string/about_license" />
+        <TextView
+            android:id="@+id/about_license"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="16dp"
+            android:text="@string/about_license" />
 
-    <TextView
-        android:id="@+id/about_website"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="16dp"
-        android:text="@string/about_website" />
+        <TextView
+            android:id="@+id/about_website"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="16dp"
+            android:text="@string/about_website" />
 
-    <TextView
-        android:id="@+id/about_feedback"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="16dp"
-        android:text="@string/about_feedback" />
-</LinearLayout>
+        <TextView
+            android:id="@+id/about_feedback"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="16dp"
+            android:text="@string/about_feedback" />
+    </LinearLayout>
+</ScrollView>