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…
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…
AutoCompleteTextView is a subclass of EditText that shows completion suggestions automatically while the user is typing. To implement AutoCompleteTextView in your app: Add the AutoCompleteTextView to your layout: <?xml version="1.0" enco…
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…
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…