forked from mukeshsolanki/android-otpview-pinview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.json
6 lines (6 loc) · 2.72 KB
/
params.json
1
2
3
4
5
6
{
"name": "Otpview/Pinview (Android)",
"tagline": "A custom view to enter a four digit code usually in cases of authentication.",
"body": "<h1 align=\"center\">Android PinView/ OtpView</h1>\r\n<p align=\"center\">\r\n <a href=\"https://android-arsenal.com/api?level=11\"> <img src=\"https://img.shields.io/badge/API-11%2B-blue.svg?style=flat\" /></a>\r\n <a href=\"https://jitpack.io/#mukeshsolanki/android-otpview-pinview\"> <img src=\"https://jitpack.io/v/mukeshsolanki/android-otpview-pinview.svg\" /></a>\r\n <a href=\"https://android-arsenal.com/details/1/3764\"> <img src=\"https://img.shields.io/badge/Android%20Arsenal-Android%20PinView%20%2F%20OtpView-brightgreen.svg?style=flat\" /></a>\r\n <a href=\"https://travis-ci.org/mukeshsolanki/android-otpview-pinview\"> <img src=\"https://travis-ci.org/mukeshsolanki/android-otpview-pinview.svg?branch=master\" /></a>\r\n <a href=\"https://www.paypal.me/mukeshsolanki\"> <img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" /></a>\r\n <br /><br />\r\n A custom control to enter a four digit code usually in cases of authentication.\r\n</p>\r\n\r\n<img src=\"https://raw.githubusercontent.com/mukeshsolanki/android-otpview-pinview/master/screenshots/Screenshot_20160622-201727.png\" width=\"500\" height=\"839\" />\r\n<img src=\"https://raw.githubusercontent.com/mukeshsolanki/android-otpview-pinview/master/screenshots/Screenshot_20160622-201845.png\" width=\"500\" height=\"839\" />\r\n\r\n## How to integrate into your app?\r\nIntegrating the project is simple a refined all you need to do is follow the below steps\r\n\r\nStep 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:\r\n\r\n```java\r\nallprojects {\r\n repositories {\r\n ...\r\n maven { url \"https://jitpack.io\" }\r\n }\r\n}\r\n```\r\nStep 2. Add the dependency\r\n```java\r\ndependencies {\r\n compile 'com.github.mukeshsolanki:android-otpview-pinview:1.0.2'\r\n}\r\n```\r\n\r\n## How to use the library?\r\nOkay seems like you integrated the library in your project but **how do you use it**? Well its really easy just add the following to your xml design to show the otpview\r\n\r\n```xml\r\n.....\r\n<com.mukesh.OtpView\r\n android:id=\"@+id/otp_view\"\r\n android:layout_width=\"wrap_content\"\r\n android:layout_height=\"wrap_content\"\r\n android:background=\"#cccccc\"\r\n android:inputType=\"number\"\r\n android:textColor=\"#FFFFFF\"\r\n app:otp=\"1234\"\r\n app:text_background_color=\"@color/colorAccent\"\r\n >\r\n</com.mukesh.OtpView>\r\n.....\r\n```\r\n\r\nThat's pretty much it and your all wrapped up.\r\n",
"note": "Don't delete this file! It's used internally to help with page regeneration."
}