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 Oct 31, 2024. It is now read-only.
在ViewPager中使用时,如果设置了占位图,当在相邻的两个page之间不断切换时,这个占位图的位置会不断偏移。
测试的话,只需要在ViewPagerActivity的instantiateItem中添加这行photoDraweeView.getHierarchy().setPlaceholderImage(R.drawable.ic_loading, ScalingUtils.ScaleType.CENTER_INSIDE);。此外为了让占位图可以多显示一会,需要让图片加载慢一点,可以直接把下面的setController()去掉,不加载图片,或者用比较大的网络图片,用2G网络来下载就可以很容易看出来。
The text was updated successfully, but these errors were encountered: