Need help with PinEditTextField?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

205 Stars 37 Forks Apache License 2.0 147 Commits 11 Opened issues


Android library for pin edit text

Services available


Need anything else?

Contributors list

PinEditTextField for Android

Download Android Arsenal

This repository contains

that provides Pin Field widget for android with
Paste Functionality
which no other library provides.

Migrate to Jitpack

Since Bintray is shutting down, the project is migrated to Jitpack. You can set it up by following this method


  • Project level
    allprojects {
    repositories {
        maven { url '' }
  • App level
    dependencies {
    implementation 'com.github.poovamraj:PinEditTextField:1.2.6'



  • Configure 3 different types of Pin Field Views to your app.
  • Allow your users to paste the characters into your Pin Field which no other library provides
  • Support for showing hint in your Pin Fields
  • Customize the number of fields you will be requiring.
  • Highlight in 4 ways - All the fields, Only Current Field, All Completed Fields, None of the fields.
  • Enable or disable cursor to your Pin Fields.
  • Curve the edges in your Square Pin Field view.
  • Customize the distance between your Pin Fields.
  • Set custom distance between your line and text Line Pin Field.
  • Keep the keyboard open or closed after the Text is entered.
  • Mask your passwords properly.
  • Use any type of keyboard you would like for the View.
  • Highly configurable with many attributes for your View.



<com.poovam.pinedittextfield.squarepinfield android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputtype="text" android:textsize="16sp" app:cornerradius="10dp" will make the square curved on edges only for pin fields app:fieldbgcolor="#ddd" color background of field and circle app:nooffields="4" android:textselecthandle="@drawable/text_handle" recommended android:id="@+id/squareField" android:layout_margintop="15dp"></com.poovam.pinedittextfield.squarepinfield>

<com.poovam.pinedittextfield.circlepinfield android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputtype="text" app:nooffields="4" android:textsize="16sp" android:textselecthandle="@drawable/text_handle" recommended app:circleradius="15dp" radius of the circle only to pin field app:fillerradius="2dp" inside shown when text is entered app:fillercolor="@color/colorPrimary" color that can be provided app:fieldbgcolor="#ddd" will background for square and fields android:id="@+id/circleField"></com.poovam.pinedittextfield.circlepinfield>

Listen to your Pin Field

final LinePinField linePinField = findViewById(;
linePinField.setOnTextCompleteListener(new PinField.OnTextCompleteListener() {
    public boolean onTextComplete (@NotNull String enteredText) {
        return true; // Return false to keep the keyboard open else return true to close the keyboard

Thank You ❤️

  • chimzycash - For the amazing logo you contributed!


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.