From 03685db2fc4bdbe3f334e50d1b415746165d5acc Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 26 Jul 2020 12:04:40 +0200 Subject: [PATCH 1/2] Improve playlist header layout: align with info items --- .../main/res/layout/local_playlist_header.xml | 14 ++++---------- app/src/main/res/layout/playlist_header.xml | 18 +++++++----------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/app/src/main/res/layout/local_playlist_header.xml b/app/src/main/res/layout/local_playlist_header.xml index 04fe32ab0..f4e2fe07d 100644 --- a/app/src/main/res/layout/local_playlist_header.xml +++ b/app/src/main/res/layout/local_playlist_header.xml @@ -1,23 +1,18 @@ - - @@ -46,8 +42,8 @@ android:id="@+id/uploader_avatar_view" android:layout_width="@dimen/playlist_detail_uploader_image_size" android:layout_height="@dimen/playlist_detail_uploader_image_size" + android:layout_centerVertical="true" android:layout_alignParentLeft="true" - android:layout_margin="1dp" android:src="@drawable/buddy" app:civ_border_color="#ffffff" app:civ_border_width="1dp"/> @@ -56,7 +52,7 @@ android:id="@+id/uploader_name" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginLeft="4dp" + android:paddingHorizontal="6dp" android:layout_toRightOf="@+id/uploader_avatar_view" android:ellipsize="end" android:gravity="left|center_vertical" @@ -73,7 +69,7 @@ android:layout_alignBottom="@+id/uploader_layout" android:layout_alignTop="@+id/uploader_layout" android:layout_alignParentRight="true" - android:layout_marginRight="6dp" + android:layout_marginLeft="6dp" android:ellipsize="end" android:gravity="right|center_vertical" android:maxLines="1" From 67aaa9a6553cd540ef9162c782ad8c39a175477c Mon Sep 17 00:00:00 2001 From: Stypox Date: Tue, 28 Jul 2020 13:10:28 +0200 Subject: [PATCH 2/2] Make local playlist layout consistent with remote one --- app/src/main/res/layout/local_playlist_header.xml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/local_playlist_header.xml b/app/src/main/res/layout/local_playlist_header.xml index f4e2fe07d..95da81447 100644 --- a/app/src/main/res/layout/local_playlist_header.xml +++ b/app/src/main/res/layout/local_playlist_header.xml @@ -16,14 +16,11 @@ android:background="?attr/selectableItemBackground" android:clickable="true" android:focusable="true" - android:ellipsize="marquee" - android:fadingEdge="horizontal" - android:marqueeRepeatLimit="marquee_forever" - android:scrollHorizontally="true" - android:singleLine="true" + android:ellipsize="end" + android:maxLines="2" android:textAppearance="?android:attr/textAppearanceLarge" android:textSize="@dimen/playlist_detail_title_text_size" - tools:text="Mix musics #23 title Lorem ipsum dolor sit amet, consectetur..."/> + tools:text="Mix musics #23 title Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tristique vitae sem vitae blanditLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsum"/>