views-widgets-samples icon indicating copy to clipboard operation
views-widgets-samples copied to clipboard

ViewPager2 bug

Open azhon opened this issue 4 years ago • 3 comments

When I open a new activity, press the back key; Viewpager2 will automatically scroll 当我打开一个新的activity后,按返回键Viewpager2会自动滚动 image

azhon avatar Mar 20 '20 11:03 azhon

Remove the setOffscreenPageLimit (2) code and it works,I don't why?

azhon avatar Mar 22 '20 12:03 azhon

@azhon have you found a solution of this? I have the same issue, If I set offscreenPageLimit = 2, the viewpager automatically scroll when I dispatch a diffutils update, If I remove does not happens. Any idea?

agustinsivoplas avatar Jul 09 '20 22:07 agustinsivoplas

@agustinsivoplas No solution found, forced to use ViewPager; can only wait for Google to find out what caused the problem

azhon avatar Jul 10 '20 02:07 azhon