attr
Gradle
Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
…
maven { url ‘https://jitpack.io’ }
}
}
Step 2. Add the dependency
dependencies {
compile ‘com.jyn.verificationcodeview:verificationcodeview:1.0.1’
}
用法
–
<com.jyn.vcview.VerificationCodeView
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:layout_marginTop=“10dp”
android:gravity=“center”
android:orientation=“horizontal”
app:vcv_et_bg=“@drawable/et_code_test1”
app:vcv_et_cursor=“@drawable/et_cursor”
app:vcv_et_cursor_visible=“false”
app:vcv_et_inputType=“numberPassword”
app:vcv_et_number=“6”
app:vcv_et_spacing=“6