Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

ViewPager中占位图显示有问题 #73

Open
cclink opened this issue Apr 20, 2018 · 0 comments
Open

ViewPager中占位图显示有问题 #73

cclink opened this issue Apr 20, 2018 · 0 comments

Comments

@cclink
Copy link

cclink commented Apr 20, 2018

在ViewPager中使用时,如果设置了占位图,当在相邻的两个page之间不断切换时,这个占位图的位置会不断偏移。
测试的话,只需要在ViewPagerActivity的instantiateItem中添加这行photoDraweeView.getHierarchy().setPlaceholderImage(R.drawable.ic_loading, ScalingUtils.ScaleType.CENTER_INSIDE);。此外为了让占位图可以多显示一会,需要让图片加载慢一点,可以直接把下面的setController()去掉,不加载图片,或者用比较大的网络图片,用2G网络来下载就可以很容易看出来。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant