package Ġcom . mand ar ine . target List . features . targets . list Ċ Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . mand ar ine . target List . common . Abstract ListAdapter Ċ import Ġcom . mand ar ine . target List . interfaces . ListItem ClickListener Ċ import Ġcom . mand ar ine . target List . model . Goal Ċ Ċ class ĠTarget s Adapter ( private Ġval Ġclick Listener : ĠList ItemClickListener ?) Ġ: ĠAbstract ListAdapter < Goal >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠRecyclerView . ViewHolder Ġ= ĊĠĠĠĠĠĠĠ ĠTarget s Item ViewHolder ( parent , Ġclick Listener ) ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind Holder ( holder : ĠRecyclerView . ViewHolder , Ġposition : ĠInt , Ġitem : ĠGoal ) Ġ= ĊĠĠĠĠĠĠĠ Ġ( holder Ġas ĠTarget s Item ViewHolder ). bind ( item ) Ċ } Ċ