欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

tools

程序员文章站 2022-03-04 19:00:10
...

String images = mlist.get(i).getImages();//得到图片集
String[] split = images.split("!");//得到一个图片
if (split.length>0) {
//将https成http 进行联网显示
String replace = split[0].replace(“https”, “http”);
Glide.with(context).load(replace).into(insideVH.insideImage);//设置图片
}

String details1 = googsBean.getResult().getDetails();
//网页请求
WebSettings settings = web.getSettings();
settings.setJavaScriptEnabled(true);
String js = “<script type=“text/javascript”>” +
“var imgs=document.getElementsByTagName(‘img’);” +
“for(var i = 0; i<imgs.length; i++){” +
“imgs[i].style.width=‘100%’;” +
“imgs[i].style.height=‘auto’;” +
“}” +
“”;
web.loadDataWithBaseURL(null,details1 + js + “”, “textml”, “utf-8”, null);
2019/3/4 20:35:52
贾国强 2019/3/4 20:35:52
checkbox_goods.setOnCheckedChangeListener(null);
checkbox_goods.setChecked(item.getGoodListChecked());

private void startBanner() {
    banner.setImageLoader(new ImageLoader() {
        @Override
        public void displayImage(Context context, Object path, ImageView imageView) {
            Glide.with(MLSS2Activity.this).load(path).into(imageView);
        }
    });
    banner.setImages(banerlist);
    banner.start();
}

@Override
public void success(Result<List> data) {
List result = data.getResult();
for (int i = 0; i <result.size() ; i++) {
Banners banners = result.get(i);
String imageUrl = banners.getImageUrl();
banerlist.add(imageUrl);
}
startBanner();
}

相关标签: 工具