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 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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: