# GlideExtLibs **Repository Path**: licheedev/GlideExtLibs ## Basic Information - **Project Name**: GlideExtLibs - **Description**: Glide扩展库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-29 - **Last Updated**: 2024-11-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Glide扩展库 ```gradle allprojects { repositories { ... mavenCentral() maven { url 'https://jitpack.io' } } } // https全通 implementation 'com.licheedev:glide-okhttp3-nohttps:1.0.1' // 加载二维码 implementation 'com.licheedev:glide-qrcode:1.0.8' // 可能需要添加这些 implementation 'com.github.bumptech.glide:glide:4.11.0' // java用 annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' // kotlin用 kapt 'com.github.bumptech.glide:compiler:4.11.0' // 如果项目没有添加okhttp的话,就手动手动添加 implementation 'com.squareup.okhttp3:okhttp:4.8.1' ``` ## 使用 要使库生效,需要在项目中添加一个`AppGlideModule` > 参考这里 https://muyangmin.github.io/glide-docs-cn/doc/getting-started.html#在-application-模块中的使用 ```java import com.bumptech.glide.annotation.GlideModule; import com.bumptech.glide.module.AppGlideModule; @GlideModule public final class MyAppGlideModule extends AppGlideModule {} ``` ```java Glide.with(this) .load(QrCode.wrap("dark souls") .setLogo(R.mipmap.ic_launcher) ) .into(imageView); ```