Open FarshidABZ opened 5 years ago
Hi, FarshidABZ
Problem comes from findViewPager in PageIndicatorView
View view = activity.findViewById(viewPagerId);
All of your ViewPagers inside RecyclerView have the same id.
There is very dirty solution. Change ViewPagers's identical ids to unique inside your ViewHolder programmatically.
viewPager.id = dataId.hashCode()
I have a recyclerview that each item has a ViewPager. At the first when I scroll ViewPager, indicator works awesome, But when I scroll my list to the 20th item then scroll ViewPager, indicator always shows the first item.
List First Item
Last Item