Remove the delete button

This commit is contained in:
Naveen
2024-04-14 20:27:44 +05:30
parent 9dda3d71f4
commit 0882fd4e47
2 changed files with 3 additions and 17 deletions

View File

@@ -205,8 +205,6 @@ class ChecklistAdapter(
}
}
checklistCross.applyColorFilter(textColor)
checklistCross.beVisibleIf(showIcons && selectedKeys.isEmpty())
checklistCheckbox.isChecked = checklistItem.isDone
checklistHolder.isSelected = isSelected

View File

@@ -28,27 +28,15 @@
android:id="@+id/checklist_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingStart="0dp"
android:paddingEnd="@dimen/activity_margin"
android:textSize="@dimen/bigger_text_size"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/checklist_cross"
app:layout_constraintEnd_toStartOf="@+id/checklist_drag_handle"
app:layout_constraintStart_toEndOf="@id/checklist_checkbox"
app:layout_constraintTop_toTopOf="parent"
tools:text="Apples 🍎" />
<ImageView
android:id="@+id/checklist_cross"
android:layout_width="@dimen/checklist_image_size"
android:layout_height="@dimen/checklist_image_size"
android:background="?selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/delete"
android:focusable="true"
android:padding="@dimen/normal_margin"
android:src="@drawable/ic_cross_vector"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/checklist_drag_handle"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/checklist_drag_handle"
android:layout_width="@dimen/checklist_image_size"