Description
This Library can be used to create Textview and Edittext efficiently , this library provides you 16 type of font styles, different type of validation on fields, types of text sizes and some default view like text color,text size, font style, type face etc. you can also change that properties by using Library methods.
EditTextviewLibrary alternatives and similar packages
Based on the "TextView/EditText Widget" category.
Alternatively, view EditTextviewLibrary alternatives based on common mentions on social networks and blogs.
-
ExpandableTextView
Android's TextView that can expand/collapse like the Google Play's app description -
android-autofittextview
A TextView that automatically resizes text to fit perfectly within its bounds. -
android-edittext-validator
Android form edit text is an extension of EditText that brings data validation facilities to the edittext. -
AutoLinkTextView
AutoLinkTextView is TextView that supports Hashtags (#), Mentions (@) , URLs (http://), Phone and Email automatically detecting and ability to handle clicks. -
Android-RobotoTextView
Implementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab fonts. -
WaitingDots
Small library that provides... bouncing dots. This feature is used in number of messaging apps (such as Hangouts or Messenger), and lately in Android TV (for example when connecting to Wifi). -
SecretTextView
A TextView that simulates the effect from the app Secret where the characters fade in/out at different speeds. -
AwesomeText
A tool that facilitates working with Spans on TextViews or any extension of them (EditTexts, Buttons...). -
Masked-Edittext
Android library contain custom realisation of EditText component for masking and formatting input text -
AnimatedEditText
Androids EditText that animates the typed text. EditText is extended to create AnimatedEditText and a PinEntryEditText. -
chips-edittext-library
Chips EditText, Token EditText, Bubble EditText, Spannable EditText and etc.. There are many names of this control. Here I develop easy to understand , modify and integrate Chips Edit Text widget for Android -
EmailAutoCompleteTextView
An AutoCompleteTextView with builtin Adapter with the emails in the device. -
CurrencyEditText
A module designed to encapsulate the use of an Android EditText field for gathering currency information from a user. Supports all ISO-3166 compliant locales/currencies. -
AutosizeEditText
AutosizeEditText for Android is an extension of native EditText that offer a smooth auto scale text size. -
Android-SingleInputForm
A single EditText instead of a classical form. Library that implements flavienlaurent's singleinputform -
anytextview
An extension of Android's TextView, EditText and Button that let's you use the font of your choice -
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. -
MaskFormatter
Add text masking functionality to Android EditText. It will prevent user from inserting not allowed signs, and format input as well. -
KerningViews
Provides a set of views which allows to adjust the spacing between the characters of that view, AKA, Kerning effect.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of EditTextviewLibrary or a related project?
README
EditTextviewLibrary
This Library can be used to create Textview and Edittext efficiently , this library provides you 16 type of font styles, different type of validation on fields, types of text sizes and some default view like text color,text size, font style, type face etc. you can also change that properties by using Library methods.
Only you have to add jitpack in your root build.gradle :
allprojects {
repositories
{
...
maven { url 'https://jitpack.io' }
}
}
and add the dependency in app.gradle :
dependencies {
compile 'com.github.rohitpuriji:EditTextviewLibrary:-SNAPSHOT'
}
This library made with java8 so add the jack option inside defaultCondig in your app gradle file :
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
jackOptions {
enabled true
}
and add compile ad dex options :
dexOptions {
incremental true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
### You can create field in layout file like this :
<?xml version="1.0" encoding="utf-8"?>
<com.tech.edittextviewlibrary.TextViewField
android:layout_width="match_parent"
android:layout_margin="10dp"
android:id="@+id/tvUsername"
android:layout_height="wrap_content"/>
<com.tech.edittextviewlibrary.EdittextField
android:layout_width="match_parent"
android:layout_margin="10dp"
android:id="@+id/etFirstName"
android:inputType="textPassword"
android:layout_height="wrap_content"/>
<com.tech.edittextviewlibrary.EdittextField
android:layout_width="match_parent"
android:layout_margin="10dp"
android:id="@+id/etEmail"
android:layout_height="wrap_content"/>
<com.tech.edittextviewlibrary.EdittextField
android:layout_width="match_parent"
android:layout_margin="10dp"
android:id="@+id/etUsername"
android:inputType="textPassword"
android:layout_height="wrap_content"/>
<com.tech.edittextviewlibrary.EdittextField
android:layout_width="match_parent"
android:layout_margin="10dp"
android:id="@+id/etPassword"
android:inputType="textPassword"
android:layout_height="wrap_content"/>
<Button
android:layout_width="wrap_content"
android:text="Check"
android:padding="10dp"
android:id="@+id/btnCheck"
android:layout_gravity="center"
android:layout_height="wrap_content" />
Then access Fields like this :
TextViewField tvUsername = (TextViewField) findViewById(R.id.tvUsername);
final EdittextField etEmail = (EdittextField) findViewById(R.id.etEmail);
final EdittextField etPassword = (EdittextField) findViewById(R.id.etPassword);
EdittextField etFirstName = (EdittextField)findViewById(R.id.etFirstName);
EdittextField etUsername = (EdittextField)findViewById(R.id.etUsername);
you can set text by using setTextString Method.
tvUsername.setTextString("Registration form");
you can set text color by using setTextStringcolor Method otherwise default color will be GRAY.
tvUsername.setTextStringcolor(Color.BLUE);
you can set view background color by using setBgColor Method otherwise default color will be WHITE.
tvUsername.setBgColor(Color.BLUE);
you can set padding by using setTextPadding Method otherwise default padding will be 20dp.
etFirstName.setTextPadding(10,10,10,10);
We have basic 8 types of font style with regular and bold format like :
*
* arial,
* courier,
* georgia,
* helvetica,
* roboto,
* tahoma,
* times,
* verdana
*
*
tvUsername.setTextTypeFaceBold(FontTypes.georgia,this);
etFirstName.setTextTypeFaceNormal(FontTypes.georgia,this);
you can set text font size by using setFontSize Method
there are many sizes available :
*
* small(12),
* mid(15),
* large(17),
* xlarge(20),
* xxlarge(22);
*
*
tvUsername.setFontSize(FontSizeTypes.xxlarge);
you can set some background view or drawable xml by using setBackgroundView Method otherwise a default drawable xml will be use.
etEmail.setBackgroundView(R.drawable.edittext_bg);
Similarly you can set Edittext hint text,color.
We have basic 4 types of Field Validations like :
*
* EmailType,
* PasswordType,
* OnlyAlphabetsType,
* AlphaNumericTypes,
* None
*
etEmail.setValidationType(ValidationType.EmailType,"Not a Valid email!");
you can set password length by using setValidationLength Method otherwise default length will be 6.
etPassword.setValidationLength(PasswordLength.Five);
you can set error message by passing second parameter as a message if empty then default message will show.
etPassword.setValidationType(ValidationType.PasswordType,"");
And on button click you can
Button btnCheck = (Button)findViewById(R.id.btnCheck);
btnCheck.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//On submit you only need to check getError null if getError==null then field has valid entry.
if (etEmail.getError() == null && !TextUtils.isEmpty(etEmail.getText().toString()){
Toast.makeText(MainActivity.this,"etUsername valid entry",Toast.LENGTH_LONG).show();
}
if (etPassword.getError() != null && !TextUtils.isEmpty(etPassword.getText().toString()){
Toast.makeText(MainActivity.this,"etPassword invalid entry",Toast.LENGTH_LONG).show();
}
}
});
## For more information please check the code.
# Developed By ## Rohit Puri
License
Copyright Rohit Puri Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*Note that all licence references and agreements mentioned in the EditTextviewLibrary README section above
are relevant to that project's source code only.