In my ViewHolder i have a function: ``` privat...
# getting-started
m
In my ViewHolder i have a function:
Copy code
private fun setupAmountLabel(amountLabelView: CategorizedAmountView, category: Category?,
                             amount: Double, percent: String, isParentView: Boolean) {
    amountLabelView.setOnClickListener {
        listItemClickListener?.onListItemClick(if (isParentView) 1 else 0, category?.guid ?: "")
    }
}
Where i want to click on my listItemParent. Earlier this function was in the adapter, and I called the adapter by creating the setListClickListener method. But now i didn t know how i can make click on this item.