Having difficulty understanding layoutinflater Android Studio (Kotlin)
I am aware of a post that was made before this pertaining to the same topic, however it was in java.
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder {
// create a new view
val adapterLayout = LayoutInflater.from(parent.context)
.inflate(R.layout.list_item, parent, false)
return ItemViewHolder(adapterLayout)
}
This was the definition the docs gave me, "Instantiates a layout XML file into its corresponding android.view.View objects." What...