Closed kiss718867 closed 2 years ago
gradle配置如下:
implementation 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' implementation 'com.github.penfeizhou.android.animation:glide-plugin:2.9.0' implementation 'com.github.penfeizhou.android.animation:apng:2.9.0'
Java代码如下: ImageView imageView = view.findViewById(R.id.iv); GlideApp.with(imageView) .load(str) .into(imageView);
首先确保用最新版本,2.23.0,另外遵循文档Glide.with(imageView).load("https://misc.aotu.io/ONE-SUNDAY/SteamEngine.png").into(imageView);
gradle配置如下:
implementation 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' implementation 'com.github.penfeizhou.android.animation:glide-plugin:2.9.0' implementation 'com.github.penfeizhou.android.animation:apng:2.9.0'
Java代码如下: ImageView imageView = view.findViewById(R.id.iv); GlideApp.with(imageView) .load(str) .into(imageView);