make module card clickable and highlight when focused

This commit is contained in:
nikk gitanes 2022-06-06 02:23:02 +03:00 committed by John Wu
parent f2846694e1
commit 0f9b2a7df8

View File

@ -28,7 +28,10 @@
isEnabled="@{!item.removed && item.enabled && !item.showNotice}"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="@{!item.removed && item.enabled && !item.showNotice}"
android:focusable="@{!item.removed && item.enabled && !item.showNotice}"
android:nextFocusRight="@id/module_indicator"
android:onClick="@{() -> item.setEnabled(!item.enabled)}"
app:cardBackgroundColor="@color/color_card_background_color_selector"
tools:isEnabled="false"
tools:layout_gravity="center"