All Projects → shree-vastava → ValidUtil

shree-vastava / ValidUtil

Licence: other
No description or website provided.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ValidUtil

Android Inappbilling
A sample which uses Google's Play Billing Library and it does InApp Purchases and Subscriptions.
Stars: ✭ 114 (+395.65%)
Mutual labels:  android-sdk, android-development, android-studio
Livesmashbar
An elegant looking and easy to use informative library with LiveData integration for Android.
Stars: ✭ 107 (+365.22%)
Mutual labels:  android-sdk, android-development, android-studio
Android-MonetizeApp
A sample which uses Google's Play Billing Library and it makes In-app Purchases and Subscriptions.
Stars: ✭ 149 (+547.83%)
Mutual labels:  android-sdk, android-development, android-studio
Kotlin Android Scaffolding
An android project structure using kotlin and most common libraries.
Stars: ✭ 53 (+130.43%)
Mutual labels:  android-sdk, android-development, android-studio
Ibackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
Stars: ✭ 137 (+495.65%)
Mutual labels:  android-sdk, android-development, android-studio
Androidkex
Extensions for Kotlin. Use the power of Kotlin to make your code smaller and beautiful.
Stars: ✭ 35 (+52.17%)
Mutual labels:  android-sdk, android-development, android-studio
Awesome Android
😎 A curated list of awesome Android resources
Stars: ✭ 26 (+13.04%)
Mutual labels:  android-sdk, android-development, android-studio
media-picker
Easy customizable picker for all your needs in Android application
Stars: ✭ 167 (+626.09%)
Mutual labels:  android-sdk, android-development, android-studio
android-jetpack
🚀 Road to Accelerate Android Development using Jetpack
Stars: ✭ 50 (+117.39%)
Mutual labels:  android-sdk, android-development, android-studio
AndroidDevTools
收集整理Android开发所需的Android SDK、开发中用到的工具、Android开发教程、Android设计规范,免费的设计素材等。
Stars: ✭ 7,284 (+31569.57%)
Mutual labels:  android-sdk, android-development, android-studio
Biometric-Authentication-Android
A sample implementation of AndroidX biometrics API using Kotlin. Authenticate using biometrics or PIN/Password if biometrics isn't available on device. Fully implemented in Jetpack compose using Material 3 dynamic theming and also has a separate implementation in xml with MDC 3.
Stars: ✭ 29 (+26.09%)
Mutual labels:  android-sdk, android-development, android-studio
Cameraxdemo
A sample camera app with CameraX API from Android Jetpack
Stars: ✭ 112 (+386.96%)
Mutual labels:  android-sdk, android-development, android-studio
GitReposCompose
GitReposCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android. This demo app uses Github public API for fetching public repositories.
Stars: ✭ 32 (+39.13%)
Mutual labels:  android-sdk, android-development, android-studio
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (+356.52%)
Mutual labels:  android-sdk, android-development, android-studio
awesome-android-tips
😎 A curated list of awesome Android tips
Stars: ✭ 34 (+47.83%)
Mutual labels:  android-development, android-studio, android-libs
Android-daily-read-tips
log for articles and info in android for every developer
Stars: ✭ 13 (-43.48%)
Mutual labels:  android-sdk, android-development, android-studio
Awesome Android Ui
😎 A curated list of awesome Android UI/UX libraries
Stars: ✭ 353 (+1434.78%)
Mutual labels:  android-sdk, android-development, android-studio
Modern Android Development
Modern Android Development tools & key points
Stars: ✭ 219 (+852.17%)
Mutual labels:  android-sdk, android-development, android-studio
Docker Jenkins Android
Jenkins docker image for Android development
Stars: ✭ 35 (+52.17%)
Mutual labels:  android-sdk, android-development
Permissionsflow
A simple library to make it easy requesting permissions in Android using Kotlin Coroutines.
Stars: ✭ 49 (+113.04%)
Mutual labels:  android-sdk, android-development

A utility library that does the following things:

  • Check internet connection
  • Validate for empty edit texts
  • Validate for email
  • Validate for mobile number
  • Validate text for any no of digits
  • Fancy Progress Dialog

Watch it in action here

How to add

Add this in the project level build.gradle:

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

And this in the app level build.gradle

compile 'com.github.shree-vastava:ValidUtil:v1.0'

How to use

Create an object of the ValidUtils class

    ValidUtils validUtils = new ValidUtils() 

Check for internet connection

    if (validUtils.isNetworkAvailable(this)){
        // do whatever you want to do IF internet is AVAILABLE
    }

Check for empty EditTexts

    if(validUtils.validateEditTexts(name,mobile,email)){ //where name,mobile, email are EditTexts
        // do whatever you want to do if EditTexts are not empty
    }

Check for Email validation

    if(validUtils.validateEmail(email)){
         // do whatever you want to do if email is valid i.e in form of [email protected]
    }

You can check for more email EditTexts also by passing comma separate EditTexts in the above function

Check for mobile Number

    if(validUtils.validateMobileNumber(mobile)){
         // do whatever you want to do if mobile number is valid i.e 10 digits
    }

You can check for multiple mobile EditTexts

Check for no of digits in an EditText

    if(validUtils.validateForDigits(Pin,6)){
         // do whatever you want to do if Pin is 6 digits
    }

Here Pin the EditText

Show and hide Fancy Progress Dialog

   validUtils.showProgresDialog(this,this)

where the arguements are like

   validUtils.showProgressDialog(Context, Activity)

To hide the dialog

   validUtils.hideProgressDialog()

The last and simplest as well as bonus functionality

The Toast

  validUtils.showToast(Context,"some message")
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].