Kotlin with RecyclerView
Paul Allies
1131

Hi,

Thanks for this code. I’m trying to do the same thing with your sample,

but android stops the build in thi line :

override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): ViewHolder { val v = LayoutInflater.from(parent?.context).inflate(R.layout.item_layout, parent, false) return ViewHolder(v); }

the problem is about .itemlayout, it’s unknow for him. I have an unresolved item in error.

Do you know the problem ?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.