From 02e323133de111390d451c7ccd02035e5b6c790c Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Fri, 29 Nov 2019 14:49:41 +0100 Subject: [PATCH] Updated selector "selection" design --- .../main/res/layout/item_settings_selector.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/src/main/res/layout/item_settings_selector.xml b/app/src/main/res/layout/item_settings_selector.xml index 401dc552d..346a7d4ec 100644 --- a/app/src/main/res/layout/item_settings_selector.xml +++ b/app/src/main/res/layout/item_settings_selector.xml @@ -55,9 +55,9 @@ android:id="@+id/selector_text" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginStart="@{item.icon == 0 ? (int) @dimen/l1 : 0}" android:gravity="center_vertical" android:orientation="vertical" - android:layout_marginStart="@{item.icon == 0 ? (int) @dimen/l1 : 0}" android:paddingTop="@dimen/l1" android:paddingBottom="@dimen/l1" app:layout_constraintBottom_toTopOf="@+id/selector_divider" @@ -93,8 +93,10 @@ android:id="@+id/selector_divider" gone="@{item.selectedEntry == null}" android:layout_width="match_parent" - android:layout_height="1dp" + android:layout_height="0dp" + android:alpha=".5" android:background="?colorSurface" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@+id/selector_text" />