From b2ebd92d2aa17556982c8e6667e968ec6a2e643d Mon Sep 17 00:00:00 2001 From: OxygenCobalt Date: Tue, 21 Sep 2021 06:41:01 -0600 Subject: [PATCH] ui: fix ellipsizing of certain textviews Fix a problem where ellipsizing wouldn't work on the new TextView styles. --- app/src/main/res/layout-land/item_detail.xml | 1 - app/src/main/res/layout-large/item_detail.xml | 1 - app/src/main/res/layout/fragment_compact_playback.xml | 1 + app/src/main/res/layout/item_detail.xml | 1 - app/src/main/res/layout/widget_full.xml | 1 + app/src/main/res/layout/widget_small.xml | 1 + app/src/main/res/values/styles_android.xml | 1 - app/src/main/res/values/styles_ui.xml | 11 +++++++---- 8 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout-land/item_detail.xml b/app/src/main/res/layout-land/item_detail.xml index 87989341e..85fc98f5f 100644 --- a/app/src/main/res/layout-land/item_detail.xml +++ b/app/src/main/res/layout-land/item_detail.xml @@ -80,7 +80,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_small" - android:backgroundTint="?attr/colorAccent" android:text="@string/lbl_shuffle" app:layout_constraintBottom_toBottomOf="@+id/detail_play_button" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout-large/item_detail.xml b/app/src/main/res/layout-large/item_detail.xml index 12f34d903..880a9a576 100644 --- a/app/src/main/res/layout-large/item_detail.xml +++ b/app/src/main/res/layout-large/item_detail.xml @@ -77,7 +77,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_small" - android:backgroundTint="?attr/colorAccent" android:text="@string/lbl_shuffle" app:layout_constraintBottom_toBottomOf="@+id/detail_play_button" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/fragment_compact_playback.xml b/app/src/main/res/layout/fragment_compact_playback.xml index 9432d57b8..9f60d5658 100644 --- a/app/src/main/res/layout/fragment_compact_playback.xml +++ b/app/src/main/res/layout/fragment_compact_playback.xml @@ -57,6 +57,7 @@ style="@style/Widget.Auxio.TextView.Secondary.Compact" android:layout_marginStart="@dimen/spacing_small" android:layout_marginEnd="@dimen/spacing_small" + android:ellipsize="end" android:text="@{@string/fmt_two(song.album.artist.name, song.album.name)}" app:layout_constraintBottom_toBottomOf="@+id/playback_cover" app:layout_constraintEnd_toStartOf="@+id/playback_play_pause" diff --git a/app/src/main/res/layout/item_detail.xml b/app/src/main/res/layout/item_detail.xml index 32e3bfbdc..5ddcac1ec 100644 --- a/app/src/main/res/layout/item_detail.xml +++ b/app/src/main/res/layout/item_detail.xml @@ -72,7 +72,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_small" - android:backgroundTint="?attr/colorAccent" android:text="@string/lbl_shuffle" app:layout_constraintBottom_toBottomOf="@+id/detail_play_button" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/widget_full.xml b/app/src/main/res/layout/widget_full.xml index e033a6567..ab2395d61 100644 --- a/app/src/main/res/layout/widget_full.xml +++ b/app/src/main/res/layout/widget_full.xml @@ -4,6 +4,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" + android:background="?attr/colorSurface" android:theme="@style/Theme.Widget"> match_parent @dimen/spacing_medium vertical - ?attr/colorSurface \ No newline at end of file diff --git a/app/src/main/res/values/styles_ui.xml b/app/src/main/res/values/styles_ui.xml index 389861817..ba9d9c9a3 100644 --- a/app/src/main/res/values/styles_ui.xml +++ b/app/src/main/res/values/styles_ui.xml @@ -47,7 +47,7 @@ true @style/ThemeOverlay.SeekbarHalo - + @@ -174,9 +176,10 @@ @dimen/spacing_small - -