Skip to content

pisalcoding/android-passcode-view

Repository files navigation

Android Passcode View

A simple passcode view similar to iOS lock screen.

Usage

Step 1: Add this your root build.gradle

repositories {  
	...
    maven { url "https://jitpack.io" }
}

Step 2: Add this your app build.gradle

dependencies {
	implementation 'com.github.pisalcoding:android-passcode-view:Tag'
}

Step 3: Usage

<me.pisal.passcodeview.PasscodeView
    android:id="@+id/pin_auth_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:pcPinCount="4"/>
pinAuthView.onFilled = { pin ->
    // Use the pin value when the pin value is filled
}