Updated selector "selection" design
This commit is contained in:
parent
cb96b536a2
commit
02e323133d
@ -55,9 +55,9 @@
|
|||||||
android:id="@+id/selector_text"
|
android:id="@+id/selector_text"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@{item.icon == 0 ? (int) @dimen/l1 : 0}"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginStart="@{item.icon == 0 ? (int) @dimen/l1 : 0}"
|
|
||||||
android:paddingTop="@dimen/l1"
|
android:paddingTop="@dimen/l1"
|
||||||
android:paddingBottom="@dimen/l1"
|
android:paddingBottom="@dimen/l1"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/selector_divider"
|
app:layout_constraintBottom_toTopOf="@+id/selector_divider"
|
||||||
@ -93,8 +93,10 @@
|
|||||||
android:id="@+id/selector_divider"
|
android:id="@+id/selector_divider"
|
||||||
gone="@{item.selectedEntry == null}"
|
gone="@{item.selectedEntry == null}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dp"
|
android:layout_height="0dp"
|
||||||
|
android:alpha=".5"
|
||||||
android:background="?colorSurface"
|
android:background="?colorSurface"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/selector_text" />
|
app:layout_constraintTop_toBottomOf="@+id/selector_text" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
@ -102,15 +104,15 @@
|
|||||||
gone="@{item.selectedEntry == null}"
|
gone="@{item.selectedEntry == null}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="@dimen/l1"
|
android:paddingStart="@dimen/l1"
|
||||||
android:layout_marginTop="@dimen/l_75"
|
android:paddingTop="@dimen/l_75"
|
||||||
android:layout_marginEnd="@dimen/l1"
|
android:paddingEnd="@dimen/l1"
|
||||||
android:layout_marginBottom="@dimen/l_75"
|
android:paddingBottom="@dimen/l_75"
|
||||||
android:text="@{item.selectedEntry}"
|
android:text="@{item.selectedEntry}"
|
||||||
android:textAppearance="@style/AppearanceFoundation.Tiny.Variant"
|
android:textAppearance="@style/AppearanceFoundation.Tiny.Variant"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="@+id/selector_text"
|
app:layout_constraintStart_toStartOf="@+id/selector_text"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/selector_divider"
|
app:layout_constraintTop_toTopOf="@+id/selector_divider"
|
||||||
tools:text="@tools:sample/lorem" />
|
tools:text="@tools:sample/lorem" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user