GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - antoxa2584x/PinCodeView: Pretty PinCode view

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
images
images
 
 
library
library
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Android Arsenal

PinCodeView

PinCodeView is Android UI library for replace EditText's PIN input with pretty customizable view.

Demo

See demo app for usage example.

Installation

Edit your master gradle.build file and add maven { url 'https://jitpack.io' } to your current repositories block content (if you use other jitpack hosted libraries, then this step can be skipped):

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

Next, edit your module's build.gradle and the following dependency:

compile 'com.github.antoxa2584x:PinCodeView:<VERSION>'

For recent value of <VERSION> consult library releases or jitpack badge: Release

How To Use

In Xml

<com.goldenpie.devs.pincodeview.PinCodeView
    android:id="@+id/ci_drawable"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="24dp"
    app:pcv_pin_error_color="@color/accent"
    app:pcv_pin_inner_alpha="1" //Default 0.3
    app:pcv_pin_inner_color="@android:color/white"
    app:pcv_pin_inner_drawable="@mipmap/ic_launcher" //Default circle
    app:pcv_pin_length="4" //Default 4
    app:pcv_pin_outer_color="@color/colorPrimary"
    app:pcv_pin_outer_drawable="@mipmap/ic_launcher" //Default circle
    app:pcv_pin_tint_inner="false" //Default false
    app:pcv_pin_tint_outer="true" //Default false
    app:pcv_pin_type="unlock" />

In Your Code

PinCodeView pinCodeView = new PinCodeView(this)
    .setLockType(LOCK_TYPE.ENTER_PIN)
    .setPinEnteredListener(this)
    .setPinReEnterListener(this)
    .setPinMismatchListener(this)
    .setInnerCircleColor(color)
    .setOuterCircleColor(color)
    .setErrorColor(color)
    .setLockType(isChecked ? LOCK_TYPE.ENTER_PIN : LOCK_TYPE.UNLOCK)
    .setPinLength(length)
    .setInnerAlpha(1)
    .setTintInner(false)
    .setTintOuter(false)
    .setInnerDrawable(ContextCompat.getDrawable(this, R.drawable.circle))
    .setOuterDrawable(ContextCompat.getDrawable(this, R.drawable.circle));

Changelog

v1.2

  • custom pin drawable
  • inner pin alpha
  • use tint or not

License

MIT License

Copyright (c) 2017 antoxa2584x

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Pretty PinCode view

Topics

androidandroid-libraryandroid-uimaterailpincodeview

Resources

Readme
Activity

Stars

135 stars

Watchers

2 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.