[Android] Thinner progress/seek bars

Geoffrey Métais git at videolan.org
Tue Feb 21 17:52:05 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 21 17:44:53 2017 +0100| [d472f5f9a74770b1132744783ab2eb982f1ca043] | committer: Geoffrey Métais

Thinner progress/seek bars

> https://code.videolan.org/videolan/vlc-android/commit/d472f5f9a74770b1132744783ab2eb982f1ca043
---

 vlc-android/res/layout/audio_player.xml    | 12 ++++++------
 vlc-android/res/layout/tv_audio_player.xml |  2 +-
 vlc-android/res/layout/video_grid_card.xml |  4 ++--
 vlc-android/res/layout/video_list_card.xml |  4 ++--
 vlc-android/res/values/dimens.xml          |  2 +-
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index a7b55be..ff60f7f 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -23,8 +23,8 @@
             android:layout_height="wrap_content"
             android:focusable="false"
             android:indeterminate="false"
-            android:maxHeight="2dip"
-            android:minHeight="2dip"
+            android:maxHeight="1dip"
+            android:minHeight="1dip"
             android:paddingLeft="0px"
             android:paddingRight="0px"
             android:progressDrawable="?attr/progress_mini_player" />
@@ -217,10 +217,10 @@
                     android:layout_height="wrap_content"
                     android:layout_weight="1"
                     android:focusable="true"
-                    android:maxHeight="4dip"
-                    android:minHeight="4dip"
-                    android:paddingLeft="16dip"
-                    android:paddingRight="16dip"
+                    android:maxHeight="1dip"
+                    android:minHeight="1dip"
+                    android:paddingLeft="@dimen/half_default_margin"
+                    android:paddingRight="@dimen/half_default_margin"
                     android:progressDrawable="@drawable/po_seekbar"
                     android:splitTrack="false"
                     android:thumb="@drawable/seekbar_thumb" />
diff --git a/vlc-android/res/layout/tv_audio_player.xml b/vlc-android/res/layout/tv_audio_player.xml
index 29ef98c..bf5ec8b 100644
--- a/vlc-android/res/layout/tv_audio_player.xml
+++ b/vlc-android/res/layout/tv_audio_player.xml
@@ -56,7 +56,7 @@
                     android:id="@+id/media_progress"
                     style="?android:attr/progressBarStyleHorizontal"
                     android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
+                    android:layout_height="2dp"
                     android:layout_marginBottom="@dimen/half_default_margin"
                     android:layout_marginTop="@dimen/half_default_margin"
                     android:focusable="true"
diff --git a/vlc-android/res/layout/video_grid_card.xml b/vlc-android/res/layout/video_grid_card.xml
index 9b5ec56..7f08e3a 100644
--- a/vlc-android/res/layout/video_grid_card.xml
+++ b/vlc-android/res/layout/video_grid_card.xml
@@ -163,8 +163,8 @@
             android:focusable="false"
             android:indeterminate="false"
             android:max="@{max}"
-            android:maxHeight="2dip"
-            android:minHeight="2dip"
+            android:maxHeight="1dip"
+            android:minHeight="1dip"
             android:progress="@{progress}"
             android:progressDrawable="@drawable/gridview_progressbar"
             android:secondaryProgress="0"
diff --git a/vlc-android/res/layout/video_list_card.xml b/vlc-android/res/layout/video_list_card.xml
index fcd5a68..4d4ede8 100644
--- a/vlc-android/res/layout/video_list_card.xml
+++ b/vlc-android/res/layout/video_list_card.xml
@@ -149,8 +149,8 @@
                 android:paddingTop="1dp"
                 android:indeterminate="false"
                 android:max="@{max}"
-                android:maxHeight="2dip"
-                android:minHeight="2dip"
+                android:maxHeight="1dip"
+                android:minHeight="1dip"
                 android:progress="@{progress}"
                 android:progressDrawable="?attr/gridview_progressbar"
                 android:visibility="@{max == 0 ? View.INVISIBLE : View.VISIBLE}" />
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 78b0026..ad3af0e 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -21,7 +21,7 @@
     <dimen name="overlay_padding_sides">5dp</dimen>
     <dimen name="overlay_margin">2dp</dimen>
 
-    <dimen name="seekbar_height">2dip</dimen>
+    <dimen name="seekbar_height">1dip</dimen>
     <dimen name="images_margin_sides">10dp</dimen>
     <dimen name="time_margin_sides">12dp</dimen>
 



More information about the Android mailing list