toggle checklist item checked state on click

This commit is contained in:
tibbi
2018-12-08 23:04:20 +01:00
parent 0babf17c63
commit ddb5654b9f
2 changed files with 20 additions and 9 deletions

View File

@ -52,7 +52,7 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList<Checkl
override fun getItemCount() = items.size
fun initDrawables() {
private fun initDrawables() {
val res = activity.resources
crossDrawable = res.getColoredDrawableWithColor(R.drawable.ic_cross_big, res.getColor(R.color.theme_dark_red_primary_color))
checkDrawable = res.getColoredDrawableWithColor(R.drawable.ic_check_big, res.getColor(R.color.md_green_700))