Closed DuShuYuan closed 5 years ago
已解决: 使用glide回调加载图片
`
Glide.with(mContext).load(urls[position]).into(new SimpleTarget
@Override
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
view.setImageDrawable(resource);
}
});
`
glide是4.0版本 如果加载本地资源滑动起来就很流畅 使用imageview+glide也很流程 代码: `vp.setAdapter(new PagerAdapter() { @Override public int getCount() { return urls.length; }
` public class ImageLoader {
} `