Glide 4.x生成GlideApp

参考:https://bumptech.github.io/glide/doc/generatedapi.html

添加Glide注解处理器依赖

1
2
3
4
5
6
7
8
repositories {
mavenCentral()
}

dependencies {
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
compile 'com.github.bumptech.glide:glide:4.7.1'
}

创建AppGlideModule实现类

1
2
3
4
5
6
7
8
9
package cn.appblog.myapp;

import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.AppGlideModule;

@GlideModule
public final class MyAppGlideModule extends AppGlideModule {

}

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :