Skip to main content

Top Android EditText Libraries

Top Android EditText Libraries.

EditText is one of the most commonly used UI elements in Android development. It allows users to input text or numbers into an app. While the default EditText provided by Android is powerful, there are libraries available that offer additional features and customization options. In this tutorial, we will explore some of the top Android EditText libraries, their installation process, and provide code examples of how to use them.

1. MaterialEditText

MaterialEditText is a library that provides a material design styled EditText with additional features. It offers features like input validation, input masking, and customizable error messages.

Installation:

Add the following dependency to your app-level build.gradle file:

implementation 'com.rengwuxian.materialedittext:library:2.1.4'

Usage:

In your XML layout file, replace the default EditText with MaterialEditText:

<com.rengwuxian.materialedittext.MaterialEditText
android:id="@+id/materialEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:met_floatingLabel="normal"
app:met_hint="Enter text" />

In your Java/Kotlin code, you can access and use MaterialEditText as follows:

val materialEditText = findViewById<MaterialEditText>(R.id.materialEditText)
materialEditText.validateWith { input ->
if (input.isEmpty()) {
materialEditText.error = "Input cannot be empty"
}
}

2. PinEntryEditText

PinEntryEditText is a library that provides an EditText specifically designed for PIN code input. It automatically moves the focus to the next EditText once a digit is entered, making it ideal for creating PIN code entry screens.

Installation:

Add the following dependency to your app-level build.gradle file:

implementation 'com.alimuzaffar.lib:pinentryedittext:1.3.2'

Usage:

In your XML layout file, add PinEntryEditText:

<com.alimuzaffar.lib.widgets.PinEntryEditText
android:id="@+id/pinEntryEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:pinMaxLength="4" />

In your Java/Kotlin code, you can listen for PIN code changes as follows:

val pinEntryEditText = findViewById<PinEntryEditText>(R.id.pinEntryEditText)
pinEntryEditText.setOnPinEnteredListener { str ->
if (str == "1234") {
// Correct PIN entered
} else {
// Incorrect PIN entered
}
}

3. CodeView

CodeView is a library that provides an EditText optimized for code editing. It offers syntax highlighting for various programming languages, line numbers, and other code editing features.

Installation:

Add the following dependency to your app-level build.gradle file:

implementation 'com.github.kbiakov:CodeView-android:1.4.3'

Usage:

In your XML layout file, add CodeView:

<com.github.kbiakov.codeview.CodeView
android:id="@+id/codeView"
android:layout_width="match_parent"
android:layout_height="match_parent" />

In your Java/Kotlin code, you can set the code and configure the syntax highlighting as follows:

val codeView = findViewById<CodeView>(R.id.codeView)
val code = "fun main() {\n println(\"Hello, World!\")\n}"
codeView.setCode(code)
codeView.setLanguage(Language.AUTO)

Additional Libraries:

  • PinLockView: A library for creating PIN lock screens. GitHub

  • RichEditor: A library for creating rich text editors. GitHub

  • MaskedEditText: A library for creating masked input fields with custom formats. GitHub

  • Masked-Edittext - Android library contain custom realisation of EditText component for masking and formatting input text.

  • emojicon - A library to show emoji in TextView, EditText (like WhatsApp) for Android.

  • android-edittextpassword - AppCompatEditText extension library that allows to set a icon to show/hide the password..

  • PinEditTextField - Android library for pin edit text.

  • Google-Places-AutoComplete-EditText - A simple library that can connect your autocomplete edittext to Google places api.

  • EmojiConverter - Android Library for EditText.

  • PinView - A PIN view library for Android. Use to enter PIN/OTP/password etc..

  • CountryCodePickerProject - Country Code Picker (CCP) is an android library which provides an easy way to search and select country or international phone code. Also supports Android EditText phone mask and international phone validation..

  • AutoFormatEditText - Android Library for auto-formatting money on EditText .

  • material-singleinputform - A single EditText instead of a classical form. Library that implements flavienlaurent's singleinputform.

  • android-formidable-validation - Form validation and feedback library for Android. Provides .setText for more than just TextView and EditText widgets. Provides easy means to validate with dependencies..

  • KitKatEmoji - Library for Emoji View like Hangouts, Emoji TextView and Emoji EditText.

  • validator - A tiny library for easily validating TextInputLayouts in Android.

  • CurrencyEdittext - Android edittext currency mask library.

  • android-complexify - An Android library which makes checking the quality of user's password a breeze..

  • BlockEditText - Block EditText is a library provide an input view present in multiple block style that common use in TAC or credit card field..

  • SheenValidator - Android library to make form validation easier.

  • AppFontChanger - Custom font library for android | Library to change/add font of Entire Android Application at once without wasting your time - TextViews, EditText, Buttons, Views etc.,.

  • codeeditor - Code editor android library (custom syntax highlighting, number lines, etc).

  • emoji - A library to show emoji in TextView, EditText (like WhatsApp) for Android, simple to integrate and upgrade.

  • ViewWrapperEditText - A View wrapper for EditTexts in Android. Add Views inside/outside EditTexts using this library.

  • TextViewPlus - an android library for setting custom font in xml layout.

  • android-utils - A simple android library for validate EditText, check internet connection and show Toast..

  • FloatingLabelEditText - Floating label edittext android library.

  • SlickForm - SlickForm is an Android library that let you define a custom array of EditTexts with the purpose of handling a form in a cool animated way..

  • PhoneMask - Android library for EditText. Easy way for add phone readability in your project..

  • EasyFont - Android Library to set font of TextView, Button, EditText, and RadioButton in XML without editing Java code to set Typeface..

  • ClickDrawableTextView - This library add the ability to listen to drawables touch events for TextView subclasses.

  • MarkdownEdit - Minimal markdown formatting library for android.

  • typography - DEPRECATED. Use the native and support library variants instead - https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html. An android library that makes it easy to add custom fonts to edittexts and textviews.

  • android-form-validator - Android Form Validation Library, just simple and easy.

  • hex-input - Android library that provides a simple way to input hexadecimal content in an Android application..

  • NotePad - Android library | Vertical Lines in EditText Like a NotePad 😁.

  • passport - A Kotlin-based Android view validation library with a simple DSL..

  • input - android input library.

  • MaterialChipsInputDemo - Using the new material library from google to implement Chips just like the Gmail app. Using commas to generate new chips from EditText inside ChipGroup and deleting them on close icon click or backspace press from soft keypad..

  • TagEditText - An Android library to create an easy experience for adding and removing tags based on a wrapper around an EditText..

  • ChipTextViewHelper - Android demo app/library for easy implementation of chip-like text in your TextViews (EditText, AutoCompleteTextView, etc..).

  • RevealPassword - An android small library to show and hide password in a EditText.

  • Android-Edit-Textview-Library - A Library to manage properties of Edittext and Textview.

  • CoolView - An Android Library that help you to customize views (Button, EditText, ImageView), by adding border with the size and color that you want, and give it the corner radius that you seems cool, and you can also make an imageview looks like a circle..

  • PinEntryEditText - A simple Varification pin entry editText library for Android..

  • edittext-mask - Put masks to edit fields with this library. It is so easy!.

  • Android-Validator - Android Validation Library.

  • MaterialCountryPicker - Country (ISO/phone code) material picker library based on EditText (TextInputEditText). [Fresh port to kotlin androidx of https://github.com/jerryOkafor/CountryPicker].

  • EditTextPin - A library for android to take pin inputs like OTP..

  • Highlight - A complete and performing library to highlight text snippets (EditText, SpannableString and TextView) using Spannable with Regular Expressions (Regex) for Android..

  • EditTextValidator - Android EditText input validation library .

  • VerifyEdittext - Android Library for insert Verify Code.

  • BorderEditText - It is an Android Custom EditText Library that allows you to easily set the background color of EditText, the color of the border, the thickness, the radius, and the state when it is focused.

  • MaskedEditText - An easy to use masked edit text library.

  • format-watcher - An Android library to apply predefined formatting to the EditText field.

  • ScalableEditText - A Scalable EditText library for Android, which can be scaled by touching and dragging the edges of the EditText..

  • AndroidChipsUI - Based on https://github.com/kpbird/chips-edittext-library.

  • FloatingLabels - EditText Floating Labels: Android design support library.

  • OTPEdittet - Displaying OTP View without any library and easy initialization.

  • FloatingLabels-EditText - Quick guide on implementing android floating labels for EditText using design support library..

  • android-maskutils - A simple library for providing masks for EditTexts.

  • taggable-android - Android Simple Library for Making Taggable TextView & Taggable EditText.

  • TextInputLayoutExample - Android Floating Label EditText Example using Android Design Support Library.

  • EmojiPickerAndroid - Emoji Picker library for Android that doesn't require EditText.

  • RichText - Android library for TextView, EditText, View with border, color, background, radius & more.

  • CustomWidgets - CustomWidgets is a library use Android UI controls such as TextView, Button, EditText, ChechBox, RadioButton, Switch, ToggleButton, CircleImageView, SeekBar, etc with Custom typefaces..

  • ValidationEditText - A text and input validation library for Android, provides a simple way to validate input, and handles ui using ValidationEditText..

  • FloatingLabelEditText - Floating Label EditText Example Using Android Design Support Library.

  • ValidationText - Android Library for working with EditText validation before submit.

  • AdvancedEditText - Android library extending the functionality of the standard EditText..

  • Country-Code-picker - Jetpack compose country code picker (CCP) is an android library which provides an easy way to search and select country or international phone code. Also supports Android EditText phone mask and international phone validation..

  • DateSelectorET - An Android library for Date Picker .

  • chatGptAndroidChatBox - This is a chatbox library for android that integrates with OpenAI's ChatGPT. The library allows you to easily add a chat interface to your android app and receive responses from ChatGPT in real-time. The library uses a RecyclerView to display the chat history and an EditText to allow the user to input their message.

  • Highlight-KT - Kotlin-optimized version of the Highlight library, a complete and performing library to highlight text snippets (EditText, SpannableString and TextView) using Spannable with Regular Expressions (Regex) for Android..

  • Awesome-Input-Layout - Awesome Input Layout is an android library to display layout with multi EditText that can be rotated, autofit, zoom, delete within the app..

  • SmsBroadCasting - A library to auto-dection sms eg OTP in android input/edittext.

  • Validator - A simple library which can be used to validate edittext in android for empty values..

  • emoji-view- - A library to show emoji in TextView, EditText (like WhatsApp) for Android .

  • android-lib - This contains Custom Progress dialog, Circular Image, Custom ImageView Pager & Custom EditText library. Apart from this, this repo contains ParallaxScrollView demo project.

  • field-input - Library for android. FieldInput is layout component base on ViewGroup LinearLayout for get input from user..

  • BoxieField - A library that allows you to create a set of boxed EditTexts that are managed for cursor movement, enabling, tint, text addition and deletion, and text change notification.��.

  • MultipleTextInputDialog - A native android library, to fetch a lot of inputs from user at once via a pop up dialog containing multiple edittexts..

  • FloatingLabels - Android Material Design Floating Labels for EditText.In design support library a new element called TextInputLayout was introduced to display the floating label on EditText.The EditText has to be wrapped by TextInputLayout in order to display the floating label.This is very useful..

  • CommaSeparatedEditText - This library contain easy way of dealing comma separated amounts..

In this tutorial, we explored some of the top Android EditText libraries and their installation process. We also provided code examples showcasing how to use these libraries in your Android app. By utilizing these libraries, you can enhance the functionality and customization options of EditText in your app. Additionally, we listed a few more libraries that you can explore to further enhance your app's user input experience.