diff --git a/app/src/main/res/layout/item_module_md2.xml b/app/src/main/res/layout/item_module_md2.xml index 2da734425..08f209d55 100644 --- a/app/src/main/res/layout/item_module_md2.xml +++ b/app/src/main/res/layout/item_module_md2.xml @@ -19,132 +19,136 @@ - + android:layout_height="wrap_content"> - - - - - - - - - - - - - + android:alpha="@{item.enabled ? 1f : .5f}" + android:onClick="@{() -> item.toggle()}" + tools:layout_gravity="center" + tools:layout_margin="@dimen/l1"> + android:layout_height="match_parent" + android:layout_gravity="center" + android:adjustViewBounds="true" + android:alpha=".05" + android:background="@null" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:tint="?colorOnSurface" + tools:srcCompat="@drawable/ic_update_md2" /> - + android:animateLayoutChanges="true"> - + - + + + + + + + + + + + + + + + +