I want to create dynamic lists which can be scrolled on the screen. To do this in Android, we create a custom adapter extending RecyclerView.Adapter<ListItem>
, where ListItem is a class containing the content of list items extending RecyclerView.ViewHolder
.
How to make such scrollable lists in HarmonyOS?
Pls kindly refer to ListContainer
in the HarmonyOS development document.
ListContainer
is a component used for displaying continuous data in multiple rows. It contains a series of list items of the same type.