With ViewHolder of RecyclerView, you can inject view by ButterKnife. To do this, you can bind views in init block.

class ViewHolder(view: View): RecyclerView.ViewHolder(view) {

@BindView(R.id.item_text) lateinit var textView: TextView

init {
ButterKnife.bind(this, view)
}
}

ButterKnife version is 10.1.0.

dependencies {
// ButterKnife
implementation 'com.jakewharton:butterknife:10.1.0'
kapt 'com.jakewharton:butterknife-compiler:10.1.0'
}