From ba556f492f6a14eb5afa991798ef5d091c597003 Mon Sep 17 00:00:00 2001 From: Byk Date: Thu, 19 Jan 2017 17:49:45 +0800 Subject: [PATCH] =?UTF-8?q?Update.=20README=E5=A2=9E=E5=8A=A0JitPack?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 +++++++++++++++- app/build.gradle | 3 ++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31dc344..1c7b62e 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,21 @@ ### 使用说明 Usage +- 在Gradle中添加JitPack声明 +```gradle +allprojects { + repositories { + … + maven { url 'https://jitpack.io' } + } +} +``` +- 添加引用 +```gradle +compile 'com.github.bluesofy:AvatarView:1.01' +``` -- 非原创,在项目 [SImageView](https://github.com/suzeyu1992/SImageView) 的基础上修改,原有的使用方法请通过传送门查看 +- 代码非原创,在项目 [SImageView](https://github.com/suzeyu1992/SImageView) 的基础上修改,原有的使用方法请通过传送门查看 - 修改了资源实体,配置灵活,删除了原有的缓存策略,采用 [Glide](https://github.com/bumptech/glide) 加载,新增了显示文字头像,文字和图片混合显示等方法,类似于钉钉的群组头像显示 ```java @@ -62,3 +75,4 @@ mMixAvatarView.setMixRes(infos); ### 联系方式 Support or Contact - E-Mail: bluesofy@qq.com +- E-Mail: bluesofy@live.cn diff --git a/app/build.gradle b/app/build.gradle index 28c492a..5bd561d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,7 +30,8 @@ dependencies { exclude group: 'com.android.support', module: 'support-annotations' }) - compile project(':avatarview') +// compile project(':avatarview') + compile 'com.github.bluesofy:AvatarView:1.01' compile "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion" } -- GitLab