Added very slight hint of the card being selectable
This commit is contained in:
parent
db4ef1443d
commit
fdfa037dca
16
app/src/main/res/drawable/ic_card_check.xml
Normal file
16
app/src/main/res/drawable/ic_card_check.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:bottomLeftRadius="@dimen/r1" android:topRightRadius="@dimen/r1" />
|
||||
<solid android:color="?colorSurfaceVariant" />
|
||||
<stroke android:width="1.5dp" android:color="?colorSurfaceVariant" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:bottomLeftRadius="@dimen/r1" android:topRightRadius="@dimen/r1" />
|
||||
<stroke android:width="1.5dp" android:color="?colorSurfaceVariant" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
@ -130,6 +130,13 @@
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
isSelected="@{item.enabled}"
|
||||
android:layout_width="@dimen/l1"
|
||||
android:layout_height="@dimen/l1"
|
||||
android:layout_gravity="right|top"
|
||||
app:srcCompat="@drawable/ic_card_check" />
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
|
||||
|
@ -178,6 +178,13 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
isSelected="@{item.enabled}"
|
||||
android:layout_width="@dimen/l1"
|
||||
android:layout_height="@dimen/l1"
|
||||
android:layout_gravity="right|top"
|
||||
app:srcCompat="@drawable/ic_card_check" />
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
</layout>
|
||||
|
Loading…
Reference in New Issue
Block a user