[Android] About Section

Alexandre Perraud git at videolan.org
Fri Jun 22 00:09:52 CEST 2012


android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Thu Jun 21 19:21:17 2012 +0200| [935b2a7bea96d65eef82ba627fbf6fbf271e20d0] | committer: Jean-Baptiste Kempf

About Section

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=935b2a7bea96d65eef82ba627fbf6fbf271e20d0
---

 vlc-android/res/layout/about.xml   |   60 +++++++++++++++++++++++++++++++++---
 vlc-android/res/values/strings.xml |    3 +-
 2 files changed, 57 insertions(+), 6 deletions(-)

diff --git a/vlc-android/res/layout/about.xml b/vlc-android/res/layout/about.xml
index 4370a4f..a08aac6 100644
--- a/vlc-android/res/layout/about.xml
+++ b/vlc-android/res/layout/about.xml
@@ -1,11 +1,61 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    android:gravity="center">
+    android:gravity="center"
+    android:orientation="vertical" 
+    android:weightSum="1">
+
+    <RelativeLayout
+        android:layout_width="fill_parent"
+        android:layout_height="70dip"
+        android:layout_gravity="top"
+        android:background="@drawable/header"
+        android:orientation="horizontal" >
+
+        <ImageView
+            android:id="@+id/imageView1"
+            android:layout_width="69dip"
+            android:layout_height="50dip"
+            android:layout_alignParentLeft="true"
+            android:layout_centerVertical="true"
+            android:src="@drawable/cone" />
+
+        <ImageView
+            android:layout_width="wrap_content"
+            android:layout_height="fill_parent"
+            android:layout_alignParentTop="true"
+            android:layout_toRightOf="@+id/imageView1"
+            android:scaleType="centerInside"
+            android:src="@drawable/header_logo" />
+
+        <TextView
+            android:id="@+id/textView1"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_alignParentBottom="true"
+            android:layout_alignParentRight="true"
+            android:gravity="center"
+            android:text="@string/about_version" />
+
+    </RelativeLayout>
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_weight="0.25" >
+    </LinearLayout>
+
     <TextView
-        android:layout_width="wrap_content"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_weight="0.25"
+        android:gravity="center"
+        android:text="@string/about_text"/>
+
+    <LinearLayout
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:text="@string/about_text" />
+        android:layout_weight="0.25" >
+    </LinearLayout>
 </LinearLayout>
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index b337b68..6eef879 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -72,7 +72,8 @@
     <string name="surface_fit_vertical">Fit vertical</string>
     <string name="surface_fill">Fill</string>
     <string name="surface_original">Center</string>
-    <string name="about_text">VLC media player\n\nVLC authors and VideoLAN\n\nLicensed under the GPLv2\n</string>
+    <string name="about_text">\nVLC media player\n\nVLC authors and VideoLAN\n\nLicensed under the GPLv2\n</string>
+    <string name="about_version">version xxx</string>
     <string name="thumbnail">Thumbnail</string>
     <string name="main_prefs_category">Main</string>
     <string name="advanced_prefs_category">Advanced</string>



More information about the Android mailing list