SkillAgentSearch skills...

PinLayout

Android PinLayout for auth screens.

Install / Use

/learn @akndmr/PinLayout
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PinLayout ⚬⚬⚬⚬

Android PinLayout for auth screens.

<img width="193" alt="Screen Shot 2022-12-04 at 03 42 09" src="https://user-images.githubusercontent.com/15641747/205468291-4aee9855-df47-4887-8ced-b075baf61931.png">

Language GitHub issues GitHub Repo stars JitPack

Installation

Step 1. Add the JitPack repository to your build file

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

Step 2. Add the dependency

  dependencies {
	    implementation 'com.github.akndmr:PinLayout:LatestVersion'
	}

Demo

https://user-images.githubusercontent.com/15641747/205468372-c6af52be-6ebe-4691-b235-d2252ec1cb2a.mov

Progressbar is for visual purposes; not part of PinLayout.

Usage

You can add pin by providing a data source like keyboard.

 addPinCode(code: String)

You can add whole pin from a clipboard.

 pasteFullPinCode(fullCode: String)

You can remove the last added pin.

 removePinCode()

You can clear PinLayout completely.

 clearPinCode()

You can register a listener for pin change and pin complete events.

 setOnPinChangeListener(
                    onPinChange = { pin ->
                        //todo
                    },
                    onPinComplete = {
                        //todo
                    }
                )

You can customize PinLayout with custom attributes.

 app:pin_count="8"
 app:pin_view_active_color="@color/bg3"
 app:pin_view_default_color="@color/bg4"
 app:pin_view_gap="12dp"
 app:pin_view_radius="16dp"
 app:pin_view_extra_gap="@dimen/margin_32"
 app:pin_view_extra_gap_index="3"

You can use extra gap attribute to group pin views to fit with your UI requirements.

<img width="318" alt="with_gap_and_without_gap" src="https://user-images.githubusercontent.com/15641747/206033783-b325c327-c434-4cbd-ac2f-a38ce9905700.png">

Roadmap

  • Add custom animation support.

Related Skills

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated2mo ago
Forks0

Languages

Kotlin

Security Score

80/100

Audited on Jan 23, 2026

No findings