TypeYourPin


Source link: https://github.com/OpenCraft/TypeYourPin

TypeYourPin

TypeYourPin is an android component made to provide a better experience when user types some PIN code

Installation:

  1. Add it in your root build.gradle at the end of repositories:
allprojects {

repositories {

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

}
 
}
 
  1. Add the dependency
dependencies {

compile 'com.github.OpenCraft:TypeYourPin:-SNAPSHOT' 
}
 

Usage:

Start using the TypeYourPin component by adding it inside your layout file:

<com.opencraft.gcherubini.typeyourpin.TypeYourPinLayout

android:id="@+id/type_your_pin_layout"

android:layout_width="match_parent"

android:layout_height="wrap_content" /> 

If you would like to know what was the pin typed, just pass the interface 'TypeYourPinInterface' to your TypeYourPin component items as below:

  yourTypePinLayout.setTypeYourPinInterface(new TypeYourPinInterface() {

 @Override

 public void onPinTyped(String typedPin) {
 
}

}
);
 

Customizing:

If you want to customize the pin's views, override the default drawable files with your custom ones:

type_your_pin_rounded_shape_filled.xml type_your_pin_rounded_shape_transparent.xml 

Create your own res/values/integers.xml to change the PIN lenght and the soft keyboard input type:

<?xml version="1.0" encoding="utf-8"?> <resources>
<integer name="type_your_pin_lenght">4</integer>
<integer name="type_your_pin_input_type">2</integer> <!-- TYPE_CLASS_NUMBER --> </resources> 

Create your own res/values/dimens.xml to change the pin size and its margins:

<?xml version="1.0" encoding="utf-8"?> <resources>
  <dimen name="type_your_pin_size">40dp</dimen>
  <dimen name="type_your_pin_margins">30dp</dimen> </resources> 

If you would like to get soft keyboard opened when your activity is shown, change your manifest file with:

<activity
 android:name=".MainActivity"
 android:windowSoftInputMode="stateAlwaysVisible" /> 

Resources

This library unifies the user contacts in a compact and user intuitive way allowing the end-user to choose between the contact's available communication options (email/phone number) following Material Design guidelines.

Although there is a standard way to call the contact list in Android, it does not always feel well-integrated in your app Android applications. UnifiedContactPicker is an Android library which allows you to easily integrate contact picking workflow into your application with minimal effort.

This is a powerful little tool that helps converting single or batches of images to Android, iOS, Windows and CSS specific formats and density versions given the source scale factor or target width/height in dp.

It has a graphical and command line interface and supports a wide array of image types for reading and conversion including PNG, JPEG, SVG, PSD and Android 9-patches. Using sophisticated scaling algorithms, it is designed to make conversion of images easy and fast while keeping the image quality high (comparable to PS). To further optimize the output post processors like pngcrush and mozJpeg can be used.

Android Piano Chart View for music theory / music apps.

Android Attitude view for drones, airplanes, rovs and mobile robots.

FireLayout is a CoordinatorLayout linked to its reference on your Firebase Real-Time Database. You can generate your own layout through firebase console.

WaveFileGenerator class let's you generate wave files for specified frequency in android.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes