You need to create different ViewHolders for every view type and then override the getItemViewType method to get your view type depending on your conditions and it will get inflated.
better idea (if you dont know kotlin )then create a java class then convert java to kotlin(code->convert)
Обсуждают сегодня