第一步:手动添加Glide依赖:
implementation 'com.github.bumptech.glide:glide:4.11.0'
第二步:布局listview
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textTitle"
android:layout_marginTop="15dp"
android:gravity="center"
android:text="这是图片的标题"
android:textSize="20sp"
android:layout_width="match_parent"
android:layout_heigh