Content-Length: 267392 | pFad | http://github.com/arsalankhan994/Style-Input-EditText

36 GitHub - arsalankhan994/Style-Input-EditText
Skip to content

arsalankhan994/Style-Input-EditText

Repository files navigation

Style Input EditText

How to use:

Step 1: Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Step 2: Add the dependency

dependencies

{ implementation 'com.github.arsalankhan994:Style-Input-EditText:1.0.0' }

That's it. Now open your java file:

String email = emailEditText.getEditText().getText().toString();
if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {
emailEditText.setError(true);
emailEditText.getEditText().setError("Email address not correct .", null);
} else {
emailEditText.setError(false);
}

For xml file:

<com.erselankhan.styleinputedittext.StyleInputEditText
android:id="@+id/email_address"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
app:editTextHint="@string/email"
app:inputType="email" />








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/arsalankhan994/Style-Input-EditText

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy