Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 1.46 KB

README.md

File metadata and controls

60 lines (50 loc) · 1.46 KB

Characterview

Maven Central License

RoundedLetterView上进行扩展改造。
根据名字显示字符的View,类似Android5.0, Gmail风格联系人头像

V1.0

  • 支持圆形和矩形View
  • 支持边框显示
  • 支持定义显示字符的数目

Gradle

dependencies {
   compile 'com.github.ruijun:characterview:1.0'
}

Maven

<dependency>
    <groupId>com.github.ruijun</groupId>
    <artifactId>characterview</artifactId>
    <version>1.0</version>
</dependency>

JitPack

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'
	}	

Screenshot

矩形 圆形 圆形带边框

Thanks

RoundedLetterView