You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use androidx.recyclerview.widget.ListAdapter and call submitList to update recyclerView, however, the dots were not showing until I call notifyDataSetChanged instead.
funsetViewPager2(viewPager2:ViewPager2) {
viewPager2.adapter!!.registerAdapterDataObserver(object:AdapterDataObserver() {
overridefunonChanged() {
super.onChanged()
// I added breakpoint here,// and this callback is not trriggered when call submitList
refreshDots()
}
})
}
The text was updated successfully, but these errors were encountered:
I've got the same issue with ListAdapter. When calling submitList to push the data to the ViewPager2's adapter, no dots are displayed until notifyDataSetChanged() is called.
aloj22
added a commit
to aloj22/dotsindicator
that referenced
this issue
Mar 25, 2021
I use
androidx.recyclerview.widget.ListAdapter
and callsubmitList
to update recyclerView, however, the dots were not showing until I callnotifyDataSetChanged
instead.The text was updated successfully, but these errors were encountered: