图像加载到自定义视图
Image Loading to a custom View
我有一个 custom ImageView
,范围从 FrameLayout
我怎样才能 从 Url
.[=13] 加载图像 到那个视图=]
谢谢。
您可以使用 Glide 库
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
}
GlideApp.with(this).load("YOUR_URL").into(imageView);
我有一个 custom ImageView
,范围从 FrameLayout
我怎样才能 从 Url
.[=13] 加载图像 到那个视图=]
谢谢。
您可以使用 Glide 库
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
}
GlideApp.with(this).load("YOUR_URL").into(imageView);