[Android] Wider layout for time picking

Geoffrey Métais git at videolan.org
Fri Feb 20 16:22:48 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 20 16:17:32 2015 +0100| [4a36525b64130ec86b27b83ee202d5288b27e1c7] | committer: Geoffrey Métais

Wider layout for time picking

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4a36525b64130ec86b27b83ee202d5288b27e1c7
---

 vlc-android/res/layout/jump_to_time.xml |   32 ++++++++++++++++++++++++++-----
 1 file changed, 27 insertions(+), 5 deletions(-)

diff --git a/vlc-android/res/layout/jump_to_time.xml b/vlc-android/res/layout/jump_to_time.xml
index 5c83b96..b3bc6c5 100644
--- a/vlc-android/res/layout/jump_to_time.xml
+++ b/vlc-android/res/layout/jump_to_time.xml
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="wrap_content" android:layout_height="wrap_content"
     android:padding="20dp">
     <TextView
@@ -16,13 +17,14 @@
         android:layout_height="wrap_content"
         android:layout_below="@+id/jump_dialog_title"
         android:layout_centerHorizontal="true">
-        <Button
+        <TextView
             android:id="@+id/jump_sign"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_centerVertical="true"
             android:nextFocusRight="@+id/jump_hours"
             android:text="+"
+            android:textSize="20sp"
             android:visibility="gone"/>
         <LinearLayout
             android:id="@+id/jump_hours_container"
@@ -34,6 +36,7 @@
                 android:id="@+id/jump_hours_up"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:layout_marginBottom="5dp"
                 android:src="@android:drawable/arrow_up_float"/>
             <TextView
                 android:id="@+id/jump_hours"
@@ -42,6 +45,7 @@
                 android:layout_margin="5dp"
                 android:maxLength="2"
                 android:text="00"
+                android:textSize="20sp"
                 android:focusable="true"
                 android:nextFocusRight="@+id/jump_minutes"
                 android:nextFocusLeft="@+id/jump_sign"/>
@@ -49,6 +53,7 @@
                 android:id="@+id/jump_hours_down"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:layout_marginTop="5dp"
                 android:focusable="true"
                 android:src="@android:drawable/arrow_down_float"/>
         </LinearLayout>
@@ -60,7 +65,8 @@
             android:layout_alignTop="@+id/jump_hours_container"
             android:layout_alignBottom="@+id/jump_hours_container"
             android:gravity="center_vertical"
-            android:text="h"/>
+            android:text="h"
+            android:textSize="20sp"/>
         <LinearLayout
             android:id="@+id/jump_minutes_container"
             android:layout_width="wrap_content"
@@ -71,6 +77,7 @@
                 android:id="@+id/jump_minutes_up"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:layout_marginBottom="5dp"
                 android:focusable="true"
                 android:src="@android:drawable/arrow_up_float"/>
             <TextView
@@ -82,11 +89,13 @@
                 android:nextFocusRight="@+id/jump_seconds"
                 android:maxLength="2"
                 android:text="00"
+                android:textSize="20sp"
                 android:focusable="true"/>
             <ImageView
                 android:id="@+id/jump_minutes_down"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:layout_marginTop="5dp"
                 android:focusable="true"
                 android:src="@android:drawable/arrow_down_float"/>
         </LinearLayout>
@@ -98,7 +107,8 @@
             android:layout_alignTop="@+id/jump_minutes_container"
             android:layout_alignBottom="@+id/jump_minutes_container"
             android:gravity="center_vertical"
-            android:text="m"/>
+            android:text="m"
+            android:textSize="20sp"/>
         <LinearLayout
             android:id="@+id/jump_seconds_container"
             android:layout_width="wrap_content"
@@ -107,6 +117,7 @@
             android:orientation="vertical">
             <ImageView
                 android:id="@+id/jump_seconds_up"
+                android:layout_marginBottom="5dp"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:focusable="true"
@@ -120,6 +131,7 @@
                 android:nextFocusRight="@+id/jump_millis"
                 android:maxLength="2"
                 android:text="00"
+                android:textSize="20sp"
                 android:textColor="@color/darkorange"
                 android:focusable="true">
                     <requestFocus />
@@ -128,6 +140,7 @@
                 android:id="@+id/jump_seconds_down"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:layout_marginTop="5dp"
                 android:focusable="true"
                 android:src="@android:drawable/arrow_down_float"/>
         </LinearLayout>
@@ -139,7 +152,8 @@
             android:layout_alignTop="@+id/jump_seconds_container"
             android:layout_alignBottom="@+id/jump_seconds_container"
             android:gravity="center_vertical"
-            android:text="s"/>
+            android:text="s"
+            android:textSize="20sp"/>
         <LinearLayout
             android:id="@+id/jump_millis_container"
             android:layout_width="wrap_content"
@@ -151,6 +165,7 @@
                 android:id="@+id/jump_millis_up"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:layout_marginBottom="5dp"
                 android:focusable="true"
                 android:src="@android:drawable/arrow_up_float"/>
             <TextView
@@ -162,11 +177,13 @@
                 android:nextFocusRight="@+id/jump_go"
                 android:maxLength="3"
                 android:text="000"
+                android:textSize="20sp"
                 android:focusable="true"/>
             <ImageView
                 android:id="@+id/jump_millis_down"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:layout_marginTop="5dp"
                 android:focusable="true"
                 android:src="@android:drawable/arrow_down_float"/>
         </LinearLayout>
@@ -179,14 +196,19 @@
             android:layout_alignBottom="@+id/jump_millis_container"
             android:gravity="center_vertical"
             android:text="ms"
+            android:textSize="20sp"
             android:visibility="gone"/>
         <Button
+            tools:targetApi="14"
             android:id="@+id/jump_go"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
+            android:layout_marginLeft="5dp"
             android:nextFocusLeft="@+id/jump_seconds"
             android:layout_centerVertical="true"
             android:layout_toRightOf="@+id/jump_millis_text"
-            android:text="@android:string/ok"/>
+            android:text="@android:string/ok"
+            android:textSize="20sp"
+            style="?android:attr/borderlessButtonStyle"/>
     </RelativeLayout>
 </RelativeLayout>



More information about the Android mailing list