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
{{ message }}
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
代码中凡是出现如下screenWidth的地方都不正确,ViewPager的宽度不一定与屏幕宽度相等。
当ViewPager宽度不等于屏幕宽度时,出现各子页面互相覆盖的问题。
int screenWidth = getContext().getResources().getDisplayMetrics().widthPixels;
这里不应该使用屏幕宽度,而是应该使用ViewPager自身的宽度。
The text was updated successfully, but these errors were encountered: