All Projects → AliAzaz → Edittext Picker

AliAzaz / Edittext Picker

Licence: mit
EditText/MaskText library use for empty, masking, pattern, and range validation📱📋

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to Edittext Picker

chuck demos
Store ChucK code with continuous integration of audio to SoundCloud
Stars: ✭ 13 (-76.36%)
Mutual labels:  travis
Taoquick
a cool QtQuick/qml component library and demo(一套酷炫的QtQuick/Qml基础库和示例)
Stars: ✭ 481 (+774.55%)
Mutual labels:  travis
Blog
github issues reactjs blog
Stars: ✭ 27 (-50.91%)
Mutual labels:  travis
Travis Watch
Stream live travis test results of the current commit to your terminal!
Stars: ✭ 294 (+434.55%)
Mutual labels:  travis
Danger
🚫 Stop saying "you forgot to …" in code review (in Ruby)
Stars: ✭ 4,691 (+8429.09%)
Mutual labels:  travis
Use React Router
React Hook for pub-sub behavior using React Router.
Stars: ✭ 575 (+945.45%)
Mutual labels:  travis
todo-list
TodoList using Ionic2/3 & Firebase: * PWA * SSO Google plus. * Share list via QRcode. * Upload image from Camera or Storage. * Speech Recognition.
Stars: ✭ 18 (-67.27%)
Mutual labels:  travis
Goreleaser
Deliver Go binaries as fast and easily as possible
Stars: ✭ 9,290 (+16790.91%)
Mutual labels:  travis
Fetch Suspense
A React hook compatible with React 16.6's Suspense component.
Stars: ✭ 479 (+770.91%)
Mutual labels:  travis
Condition Travis
🚫 semantic-release plugin to check Travis CI environment before publishing.
Stars: ✭ 9 (-83.64%)
Mutual labels:  travis
Typescript Library Starter
Starter kit with zero-config for building a library in TypeScript, featuring RollupJS, Jest, Prettier, TSLint, Semantic Release, and more!
Stars: ✭ 3,943 (+7069.09%)
Mutual labels:  travis
Pfelk
pfSense/OPNsense + ELK
Stars: ✭ 417 (+658.18%)
Mutual labels:  travis
Cargo Make
Rust task runner and build tool.
Stars: ✭ 895 (+1527.27%)
Mutual labels:  travis
shcheck
easily bind shellcheck and shfmt to your CI, so your shellscripts can be checked.
Stars: ✭ 16 (-70.91%)
Mutual labels:  travis
Android Kotlin Boilerplate
This project demonstrates Android Architecture Components (Viewodel, Livedata) and Dagger for dependency Injection in Kotlin
Stars: ✭ 28 (-49.09%)
Mutual labels:  travis
react-innertext
Returns the innerText of a React JSX object.
Stars: ✭ 37 (-32.73%)
Mutual labels:  travis
Iossampleapp
Sample iOS app demonstrating Coordinators, Dependency Injection, MVVM, Binding
Stars: ✭ 510 (+827.27%)
Mutual labels:  travis
Automatic Release
Automates the release process for GitHub projects.
Stars: ✭ 46 (-16.36%)
Mutual labels:  travis
Safety
Safety checks your installed dependencies for known security vulnerabilities
Stars: ✭ 982 (+1685.45%)
Mutual labels:  travis
Beelzebub
The Lord of Flies - A hobby operating system
Stars: ✭ 24 (-56.36%)
Mutual labels:  travis

EditTextPicker/Masked-Edittext Library

Build Status API License: MIT Android Arsenal

Edittext library by which you can easily achieve lot of functionalities though directly implemented some lines of code in XML and on Java side. Following are the functions that EditTextPicker provides:

  • Empty checking
  • Masking Edittext
  • Pattern checking
  • Range checking

Description:

Please see the description of this library on my article Edittext Picker Library

Some Output Screenshots

Pic-1 Pic-2

How to use it??

Implementation

In project.gradle add this code it in root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
Note: In future the new amendments will only reflect on AndroidX support

Now, add the dependency in app.gradle:

dependencies {
    implementation 'com.github.AliAzaz:Edittext-Library:X.X.X'
}

Quick Usage

XML

Note: By default required is true. But if you don't want to validate specific edittext then simply set it to false: app:required="false"

-- Required Edittext

    <com.edittextpicker.aliazaz.EditTextPicker
        android:id="@+id/txtBoxReq"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:required="true" />

-- Range (5-10) with default value of 999

    <com.edittextpicker.aliazaz.EditTextPicker
        android:id="@+id/txtBoxRange"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:inputType="number"
        app:defaultValue="999"
        app:maxValue="10"
        app:minValue="5"
        app:required="true"
        app:type="range" />

-- Masking

    <com.edittextpicker.aliazaz.EditTextPicker
        android:id="@+id/txtMask"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:inputType="number"
        app:mask="##-##-####"
        app:required="false" />

-- Pattern with default value checking [Following pattern is: (2-4)Characters with (3-5)Digits ]

    <com.edittextpicker.aliazaz.EditTextPicker
        android:id="@+id/txtBoxDefault"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:defaultValue="null"
        app:pattern="[^0-9]{2,4}[0-9]{3,5}"
        app:required="true"
        app:type="equal" />

Java

Implement this code in submit button click

--- For Required component

    if (!txtBoxReq.isEmptyTextBox())
                return;

-- For validating range component

    if (!txtBoxRange.isRangeTextValidate())
                return;

-- For validating pattern component

    if (!txtBoxDefault.isTextEqualToPattern())
                return;

CONNECT👍

Medium: https://medium.com/@ali.azaz.alam

Twitter: https://twitter.com/AliAzazAlam1

Github: https://github.com/aliazaz

LinkedIn: https://www.linkedin.com/in/aliazazalam/

LICENSE

Distributed under the MIT license. See LICENSE information.

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].