如果接口的地址为https,那么对其进行切割,https替换为http
String url = datas.get(i).getImages();
if (!url.isEmpty()) {
String[] split = url.split("\\|");
if (split != null) {
for (int j = 0; j < split.length; j++) {
String replace = split[j].replace("https", "http");
Uri parse = Uri.parse(replace);
viewHolder.imageView.setImageURI(parse);
}
} else {
String replace = url.replace("https", "http");
Uri parse = Uri.parse(replace);
viewHolder.imageView.setImageURI(parse);
}
}
特此记录