nightcrawler- / pinrig

Custom PIN Widget for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PIN Rig

PIN Rig is a custom anddroid widget that simplifies the input and interraction with PIN number. Currently only four-digit PINs are supported.

Installation

Add to your project level build.gradle file:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Then to your module level build.gradle:

dependencies {
	        implementation 'com.github.nightcrawler-:pinrig:<version>'
	        implementation 'com.github.nightcrawler-:clamnumpad:<version>'
	}

The version information can be found from the releases tab.

Usage

Just set the KeyPad to the PIN Rig, and implement the pinrig listener, then call the setup method

           binding.pinRig.keypad = binding.keypad
           binding.pinRig.listener = this
           binding.pinRig.setup()
   

Planned Features!

  • XML Attributes for rig shape and color

In Action

Screenshot

About

Custom PIN Widget for Android

License:Apache License 2.0


Languages

Language:Kotlin 100.0%