[Android] Switch album view to constraintlayout
Geoffrey Métais
git at videolan.org
Tue Jan 10 10:51:08 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan 9 17:33:14 2017 +0100| [752ea009cb48c17b80a96455fa0a2b5423c85f26] | committer: Geoffrey Métais
Switch album view to constraintlayout
> https://code.videolan.org/videolan/vlc-android/commit/752ea009cb48c17b80a96455fa0a2b5423c85f26
---
vlc-android/res/layout/audio_album.xml | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/vlc-android/res/layout/audio_album.xml b/vlc-android/res/layout/audio_album.xml
index bad4a3a..a77c937 100644
--- a/vlc-android/res/layout/audio_album.xml
+++ b/vlc-android/res/layout/audio_album.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout
+<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_height="match_parent">
@@ -8,34 +8,34 @@
android:id="@+id/album_cover"
android:layout_width="match_parent"
android:layout_height="150dp"
- android:layout_alignParentTop="true"
+ app:layout_constraintTop_toTopOf="parent"
android:scaleType="centerCrop"
- android:src="@drawable/background_cone"/>
+ android:src="@drawable/background_cone" />
<org.videolan.vlc.gui.view.ContextMenuRecyclerView
android:id="@+id/songs"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/album_cover"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toBottomOf="@+id/album_cover"
android:nestedScrollingEnabled="true"
android:clipToPadding="false"
android:fastScrollEnabled="true"
android:paddingBottom="@dimen/listview_bottom_padding"
android:paddingLeft="10dp"
android:paddingRight="10dp"
- style="@style/Theme.VLC.List"/>
+ style="@style/Theme.VLC.List" />
<android.support.design.widget.FloatingActionButton
app:rippleColor="@color/orange50"
android:id="@+id/album_play"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/album_cover"
+ app:layout_constraintBottom_toBottomOf="@+id/album_cover"
android:layout_marginRight="25dp"
- android:layout_below="@+id/album_cover"
- android:layout_marginTop="-40dp"
+ android:layout_marginEnd="25dp"
android:src="@drawable/ic_fab_play"
- android:tint="@color/grey50"/>
+ android:tint="@color/grey50" />
<include layout="@layout/shadow_top"
android:layout_width="match_parent"
- android:layout_height="9dp"
- android:layout_below="@+id/sliding_tabs" />
-</RelativeLayout>
\ No newline at end of file
+ android:layout_height="wrap_content" />
+</android.support.constraint.ConstraintLayout>
\ No newline at end of file
More information about the Android
mailing list