在RoundedLetterView上进行扩展改造。
根据名字显示字符的View,类似Android5.0, Gmail风格联系人头像
- 支持圆形和矩形View
- 支持边框显示
- 支持定义显示字符的数目
dependencies {
compile 'com.github.ruijun:characterview:1.0'
}
<dependency>
<groupId>com.github.ruijun</groupId>
<artifactId>characterview</artifactId>
<version>1.0</version>
</dependency>
step1: Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
step2: Add the dependency
dependencies {
compile 'com.github.ruijun:Characterview:v1.0'
}