diff --git a/app/build.gradle b/app/build.gradle index 4ff6f736..c9f19ed1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,7 +51,8 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.20.7' + implementation 'com.simplemobiletools:commons:5.20.9' + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2' kapt 'androidx.room:room-compiler:2.2.2' implementation 'androidx.room:room-runtime:2.2.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt index 81f4991d..1875e988 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/ChecklistAdapter.kt @@ -8,6 +8,7 @@ import android.view.View import android.view.ViewGroup import com.simplemobiletools.commons.activities.BaseSimpleActivity import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter +import com.simplemobiletools.commons.extensions.applyColorFilter import com.simplemobiletools.commons.extensions.beVisibleIf import com.simplemobiletools.commons.extensions.getColoredDrawableWithColor import com.simplemobiletools.commons.views.MyRecyclerView @@ -21,7 +22,8 @@ import kotlinx.android.synthetic.main.item_checklist.view.* import java.util.* class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList, val listener: ChecklistItemsListener?, - recyclerView: MyRecyclerView, val showIcons: Boolean, itemClick: (Any) -> Unit) : MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) { + recyclerView: MyRecyclerView, val showIcons: Boolean, itemClick: (Any) -> Unit) : + MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) { private lateinit var crossDrawable: Drawable private lateinit var checkDrawable: Drawable @@ -52,6 +54,14 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList - + android:src="@drawable/ic_cross_vector" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/checklist_drag_handle" + app:layout_constraintTop_toTopOf="parent" /> - + + +