package Ġapps . cd mp . goal helper . presentation . ui . summary . adapter Ċ Ċ import Ġandroid . view . View Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġapps . cd mp . goal Helper . databinding . Summary Header Binding Ċ import Ġapps . cd mp . goal Helper . databinding . Summary Item Binding Ċ import Ġapps . cd mp . goal helper . presentation . ui . summary . mapper . Ui Mapper Ċ import Ġapps . cd mp . goal helper . presentation . ui . summary . u im odel . Summary Item UI Ċ import Ġapps . cd mp . goal helper . presentation . ui . summary . u im odel . Summary Header UI Ċ Ċ sealed Ġclass ĠSummary Holder ( view : ĠView ) Ġ: ĠRecyclerView . ViewHolder ( view ) Ċ Ċ class ĠItem Holder ( private Ġval Ġbinding : ĠSummary Item Binding ) Ġ: ĠSummary Holder ( binding . root ) Ġ{ ĊĊĠĠĠ Ġfun Ġbind ( item : ĠSummary Item UI ) Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . model Ġ= Ġitem ĊĠĠĠĠĠĠĠ Ġbinding . cb Done . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġitem . onClick Done () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . execute Pending Bindings () ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠHeader Holder ( private Ġval Ġbinding : ĠSummary Header Binding ) Ġ: ĠSummary Holder ( binding . root ) Ġ{ ĊĠĠĠ Ġfun Ġbind ( ui Mapper : ĠUi Mapper , Ġheader : ĠSummary Header UI ) Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . header Text Ġ= Ġwith ( ui Mapper ){ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġheader . header . res String () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }