I have implemented RecycleView
similar to ExpandedListView
, but when the categories is collapsed(items in category hidden) there are some lags, the reason of it because onBindViewHolder
called very fast, for example if category have 20 items and the items hidden onBindViewHolder
will be called 20 times in one moment.
There are laggs even if onBindViewHolder is empty
ViewHolders contain less then 5 elements
One solution is to provide list
without hidden
items, but i wounder how expanded list view works in this situation, because expanded list view receives all items.
Someone familiar with this issue?