Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么设置本地图片? #33

Open
adzcsx2 opened this issue Jan 31, 2018 · 1 comment
Open

怎么设置本地图片? #33

adzcsx2 opened this issue Jan 31, 2018 · 1 comment

Comments

@adzcsx2
Copy link

adzcsx2 commented Jan 31, 2018

我setView显示divide by zero

@waerly
Copy link

waerly commented Apr 16, 2018

修改一下加载方式,改为加载 drawable 里面的图片就可以了
public class GlideImageLoaderRes implements BannerLayout.ImageLoader {
@OverRide
public void displayImage(Context context, String path, ImageView imageView) {
Glide.with(context).load(Integer.parseInt(path)).centerCrop().into(imageView);
}
}

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

No branches or pull requests

2 participants