kmoseenk Sep 21 2021 at 17:16Android RecyclerView с использованием котлиновских sealed классовReading time7 minViews10KOTUS corporate blogProgramming*Development for Android*TranslationTotal votes 5: ↑5 and ↓0+5Add to bookmarks28Comments1
KursikS Oct 13 2021 at 08:50Comment has been editedМожно layout id положить прямо в дата класс и избавиться от одного whensealed class UIModel(@LayoutRes val layoutId: Int)override fun getItemViewType(position: Int) = arrayList[position].layout Id
Android RecyclerView с использованием котлиновских sealed классов