|
|
@@ -925,12 +925,12 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
banner.setVisibility(View.VISIBLE);
|
|
|
//设置图片加载器
|
|
|
banner.setImageLoader(new ImageLoader() {
|
|
|
- @Override
|
|
|
- public void displayImage(Context context, Object o, ImageView imageView) {
|
|
|
- if (o instanceof SlideshowEty)
|
|
|
- Glide.with(context).load(((SlideshowEty) o).getUrl()).apply(new RequestOptions().dontAnimate()).into(imageView);
|
|
|
- }
|
|
|
- })
|
|
|
+ @Override
|
|
|
+ public void displayImage(Context context, Object o, ImageView imageView) {
|
|
|
+ if (o instanceof SlideshowEty)
|
|
|
+ Glide.with(context).load(((SlideshowEty) o).getUrl()).apply(new RequestOptions().dontAnimate()).into(imageView);
|
|
|
+ }
|
|
|
+ })
|
|
|
.setDelayTime(4000)
|
|
|
.setBannerStyle(BannerConfig.CIRCLE_INDICATOR_TITLE_INSIDE)
|
|
|
//设置图片集合
|