[Android] Center elements in video player actionbar

Geoffrey Métais git at videolan.org
Tue Mar 1 18:22:58 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar  1 18:21:45 2016 +0100| [eb70dd63c2a15c3b5626b1d824689e813aa9a346] | committer: Geoffrey Métais

Center elements in video player actionbar

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

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

diff --git a/vlc-android/res/layout-v16/player_action_bar.xml b/vlc-android/res/layout-v16/player_action_bar.xml
index 4a87dd5..e1cd510 100644
--- a/vlc-android/res/layout-v16/player_action_bar.xml
+++ b/vlc-android/res/layout-v16/player_action_bar.xml
@@ -7,9 +7,9 @@
     <TextView
         android:id="@+id/player_overlay_title"
         android:layout_width="0dp"
-        android:layout_height="wrap_content"
+        android:layout_height="match_parent"
         android:layout_weight="1"
-        android:gravity="center_horizontal"
+        android:gravity="center"
         android:layout_gravity="top"
         android:background="?attr/status_bar_overlay"
         android:text="@string/title"
@@ -26,6 +26,7 @@
         android:id="@+id/playlist_toggle"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+        android:layout_gravity="center_vertical"
         android:src="@drawable/ic_playlist_circle"
         android:focusable="true"
         android:visibility="gone"/>
@@ -35,6 +36,7 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginLeft="10dp"
+        android:layout_gravity="center_vertical"
         android:clickable="true"
         android:src="@drawable/ic_navmenu_circle"
         android:scaleType="center"



More information about the Android mailing list