[Android] Vertically center info and delay controls
Geoffrey Métais
git at videolan.org
Wed Apr 5 14:01:06 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr 4 17:05:14 2017 +0200| [6691402f2c4a8dde18e25a991c7417dc29d6800b] | committer: Geoffrey Métais
Vertically center info and delay controls
Fixes up these elements position when controls layout is not yet inflated
> https://code.videolan.org/videolan/vlc-android/commit/6691402f2c4a8dde18e25a991c7417dc29d6800b
---
vlc-android/res/layout/player.xml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index 6fead90..d732255 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -61,8 +61,7 @@
android:id="@+id/player_info_stub"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_above="@+id/progress_overlay"
- android:layout_centerHorizontal="true"
+ android:layout_centerInParent="true"
android:layout_marginBottom="@dimen/default_margin"
android:layout="@layout/player_overlay_info"/>
@@ -71,7 +70,7 @@
android:layout="@layout/player_overlay_settings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_above="@+id/progress_overlay"
+ android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/default_margin" />
More information about the Android
mailing list