• Stars
    star
    130
  • Rank 277,575 (Top 6 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PinCodePicker was created for Android platform as a view which allows to take passwords/codes or some other sensitive data from end user in easy way, so developers can focus on the core functionalities of their application

#PinCodePicker

###Version: 0.0.3

License Android Arsenal

###Description

PinCodePicker was created for Android platform as a view which allows to take passwords/codes or some other sensitive data from end user in easy way, so developers can focus on the core functionalities of their application!

Notice that PinCodePicker is a project under huge development ;) (at least should be)

####Welcome to fork and pull request.

###Screenshot image

###Quick Setup๏ผˆBasic Usage)

####XML attributes support:

<attr name="pin_code_length" format="integer"/>
<attr name="pin_code_type" format="string"/>
<attr name="pin_code_animation_current" format="reference"/>
<attr name="pin_code_filled_out_drawable" format="reference"/>

#####1.Integration

Using Gradle:
dependencies {
    compile 'com.github.polok.pincodepicker:pincodepicker:0.0.3'
}
Using Maven:
<dependency>
    <groupId>com.github.polok.pincodepicker</groupId>
    <artifactId>pincodepicker</artifactId>
    <version>0.0.3</version>
</dependency>

#####2.Usage

######Add picker into our UI (set pincode length)

    <com.github.polok.pincodepicker.PinCodeRecyclerView
        android:id="@+id/list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:background="#3E464C"
        pin_code:pin_code_length="6"/>

######Set listener to be notified when whole pin code was entered

PinCodeRecyclerView view = (PinCodeRecyclerView) findViewById(R.id.list);
    view.setPincodeListener(new PinCodeListener() {
        @Override
        public void onPinCodeInserted(String pinCode) {
            Toast.makeText(MainActivity.this, "Whole code", Toast.LENGTH_SHORT).show();
        }
    });

######You can also validate whole entered pin code and check whether it's equal to a specified value

view.setPinCodeValidation(new PinCodeValidation() {
    @Override
    public CharSequence getCorrectPinCode() {
        return "012345";
    }

    @Override
    public void onPinCodeCorrect(String pinCode) {
        Toast.makeText(MainActivity.this, "Code is correct", Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onPinCodeError(String pinCode) {
        Toast.makeText(MainActivity.this, "Code is NOT valid", Toast.LENGTH_SHORT).show();
    }
});

####If you want to see more details, go ahead and check the demo!

License

Copyright 2015 Marcin Polak

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

   http://www.apache.org/licenses/LICENSE-2.0

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.

More Repositories

1

TaggerString

TaggerString is very light library which allows to build dynamic string resource in much more readable way.
Java
240
star
2

ClickNumberPicker

Custom view to pick up a value from a given range using click button or swiping.
Java
99
star
3

RouteDrawer

RouteDrawer is an Android utils library which
Java
97
star
4

UICheckbox.Swift

UICheckbox is simple as hell and lightweight class to add 'checkbox' UI component in iOS application
Swift
69
star
5

localify

Localify is a small Andorid library which allows to load a content from files which are stored under assets and/or raw directory. It can be useful when you have to load some init data or during tests to load mock data.
Java
68
star
6

FlipView

Android FlipView UI library
Java
26
star
7

android-architecture

Repository demonstrates three different approaches to the implementation of the Android applications.
Java
6
star
8

MediaPlayerAndroidDemo

Simple custom MediaPlayer
Java
3
star
9

polok.github.com

My blog
HTML
2
star
10

design-patterns-with-swift

๐Ÿ“– Design Patterns implemented in Swift 5.+
Swift
2
star
11

Android-Gson-JsonDeserializer

Custom Json Deserializer for Gson
Shell
1
star
12

docker-jenkins-ios

Sample project to play with Docker, Jenkins and iOS ;)
Swift
1
star
13

FirebaseGradleChat

Simple integration with Firebase service. App is managed by Gradle. As IDE - Android Studio
Java
1
star
14

oversnackbar

OverSnackBar allows to show a popup from top of the screen with some message. It was based on Google's Snackbar implementation. Project is under development!
Java
1
star
15

XcodePolakTheme

Custom Xcode theme based on AppCode's Darcula theme
1
star