TyperEditText
项目地址:
andyxialm/TyperEditText
![收藏,GitHub 同步 Star](http://p.codekk.com/images/icon/ic_favorite_white.png)
简介:打字机效果
Typerwriter
Usage
Gradle
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.andyxialm:TyperEditText:1.0.0'
}
Maven
Step 1. Add the JitPack repository to your build file
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Step 2. Add the dependency
<dependency>
<groupId>com.github.andyxialm</groupId>
<artifactId>TyperEditText</artifactId>
<version>1.0.0</version>
</dependency>
Edit your layout XML:
<cn.refactor.typer.TyperEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
typer:characterWriteInterval="200"
typer:punctuationWriteInterval="600"
typer:touchable="false"/>