Skip to content

根据名字显示字符的View,类似Android5.0, Gmail风格联系人头像

Notifications You must be signed in to change notification settings

ruijun/Characterview

Repository files navigation

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

About

根据名字显示字符的View,类似Android5.0, Gmail风格联系人头像

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages