EditText

EditText with drawable icon

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa…

Set background and alpha of EditText

Examples of Setting background and alpha of EditText: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.c…

EditText with custom shape (drawable)

To create EditText with our own shape, create a drawable XML to define our custom shape: res/drawable/myshape.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/and…

Another example of TextWatcher to monitor text changed in EditText

Last show Monitor user action on EditText, and do something in onTextChanged() method of TextWatcher . It's another example to do something in afterTextChanged() method, don't care what and where is the change, just do something on the changed…

Monitor user action on EditText

This example implement TextWatcher for EditText, such that we can detect user action on EditText, no extra "Enter" button is need. package com.blogspot.android_er.androidedittextchanged; import android.os.Bundle; import android.support.v7.ap…

Load More
That is All