All Projects → antoxa2584x → Pincodeview

antoxa2584x / Pincodeview

Pretty PinCode view

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Pincodeview

andColorPicker
Color picker library for Android
Stars: ✭ 233 (+68.84%)
Mutual labels:  view, android-ui
Slidingrootnav
DrawerLayout-like ViewGroup, where a "drawer" is hidden under the content view, which can be shifted to make the drawer visible.
Stars: ✭ 2,939 (+2029.71%)
Mutual labels:  view, android-ui
bottomsheets
Material Bottom Sheets library for Android
Stars: ✭ 76 (-44.93%)
Mutual labels:  view, android-ui
Textwriter
Animate your texts like never before
Stars: ✭ 140 (+1.45%)
Mutual labels:  view, android-ui
Adaptablebottomnavigation
A simpler way for implementing the Bottom Navigation View on Android
Stars: ✭ 844 (+511.59%)
Mutual labels:  view, android-ui
Customfloatingactionbutton
This view is for replacement of standard Floating Action Button from Google Support Library. It is easy to use, customizable and you can also add text to button
Stars: ✭ 222 (+60.87%)
Mutual labels:  view, android-ui
recycler-adapter
RecyclerView-driven declarative UIs
Stars: ✭ 124 (-10.14%)
Mutual labels:  view, android-ui
Filltextview
一个填空题控件
Stars: ✭ 149 (+7.97%)
Mutual labels:  view, android-ui
Discretescrollview
A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.
Stars: ✭ 5,533 (+3909.42%)
Mutual labels:  view, android-ui
Happybubble
💭BubbleLayout随意变化的气泡布局、消息对话框,可定制颜色,背景、弧度、尖角弧度、边框等等。BubbleDialog气泡弹窗根据点击View的位置定位它的弹窗位置,BubbleDialog可定制方向等!(BubbleLayout changes freely,BubbleDialog click on the location of View positioning its location,BubbleDialog can be customized directions.)
Stars: ✭ 487 (+252.9%)
Mutual labels:  view, android-ui
SignatureView
【Android View】:好用的Android电子签名板,能保存所签名的图片
Stars: ✭ 89 (-35.51%)
Mutual labels:  view, android-ui
Fillingbutton
🔥Replace typical onLongClickListener with this library!
Stars: ✭ 31 (-77.54%)
Mutual labels:  view, android-ui
Freepager
ViewPagers library for Android
Stars: ✭ 461 (+234.06%)
Mutual labels:  view, android-ui
Dachshund Tab Layout
Extended Android Tab Layout with animated indicators that have continuous feedback.
Stars: ✭ 853 (+518.12%)
Mutual labels:  view, android-ui
Lovelydialog
This library is a set of simple wrapper classes that are aimed to help you easily create fancy material dialogs.
Stars: ✭ 1,043 (+655.8%)
Mutual labels:  view, android-ui
Paris
Define and apply styles to Android views programmatically
Stars: ✭ 1,716 (+1143.48%)
Mutual labels:  android-ui
Dragmorescrollview
一种浏览相册的交互效果
Stars: ✭ 134 (-2.9%)
Mutual labels:  android-ui
Calendarview
日历 仪表盘 圆盘,提供全新RecyclerView日历,功能更加强大。
Stars: ✭ 125 (-9.42%)
Mutual labels:  view
Fancyshowcaseview
An easy-to-use customisable show case view with circular reveal animation.
Stars: ✭ 1,662 (+1104.35%)
Mutual labels:  android-ui
Zimlx
Open Source and free launcher for Android
Stars: ✭ 137 (-0.72%)
Mutual labels:  android-ui

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].