[Android] UI : set time and length textview to fixe size

Alexandre Perraud git at videolan.org
Fri Jun 12 16:50:47 CEST 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Jun 12 16:49:12 2015 +0200| [9ae3c37f745027150862433a142aae3721a1331e] | committer: Alexandre Perraud

UI : set time and length textview to fixe size

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

 vlc-android/res/layout/player_hud.xml |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/vlc-android/res/layout/player_hud.xml b/vlc-android/res/layout/player_hud.xml
index 482e669..b0aef75 100644
--- a/vlc-android/res/layout/player_hud.xml
+++ b/vlc-android/res/layout/player_hud.xml
@@ -29,26 +29,28 @@
 
     <TextView
         android:id="@+id/player_overlay_time"
-        android:layout_width="wrap_content"
+        android:layout_width="64dp"
         android:layout_height="wrap_content"
         android:layout_below="@id/player_overlay_seekbar"
         android:layout_alignLeft="@+id/player_overlay_seekbar"
         android:layout_alignParentLeft="true"
         android:layout_marginLeft="@dimen/time_margin_sides"
-        android:text="00:00"
+        android:gravity="left"
+        android:text="00:00:00"
         android:textAppearance="@style/TextAppearance.AppCompat.SearchResult.Title"
         android:textColor="@color/orange500"
         android:textSize="16sp"/>
 
     <TextView
         android:id="@+id/player_overlay_length"
-        android:layout_width="wrap_content"
+        android:layout_width="64dp"
         android:layout_height="wrap_content"
         android:layout_below="@id/player_overlay_seekbar"
         android:layout_alignParentRight="true"
         android:layout_alignRight="@+id/player_overlay_seekbar"
         android:layout_marginRight="@dimen/time_margin_sides"
-        android:text="00:00"
+        android:gravity="right"
+        android:text="00:00:00"
         android:textAppearance="@style/TextAppearance.AppCompat.SearchResult.Title"
         android:textSize="16sp" />
 



More information about the Android mailing list