Add shadow to EditText

Add shadow to EditText

To add shadow to EditText, simple add the following to XML inside <EditText>: android:shadowColor="#000000" ...
Implement TextWatcher to EditText

Implement TextWatcher to EditText

This example implement TextWatcher, attach to EditText with addTextChangedListener(). Its methods will be called when the text is changed. I...
Implement custom shape for EditText

Implement custom shape for EditText

Example show how to implement custom shape for EditText. EditText with custom shape Create XML files in /res/drawable/ folder to define shap...
Copy drawable between ImageViews

Copy drawable between ImageViews

Example to get drawable from one ImageView, then setImageDrawable to another ImageView. Copy drawable between ImageViews package com.example...
ViewStub

ViewStub

A ViewStub is an invisible, zero-sized View that can be used to lazily inflate layout resources at runtime. ViewStub Main layout, to includ...
Re-use Layouts with include

Re-use Layouts with include

This example show how to use layout defined in seperated XML, using <include>. Such that you can re-use common view in your layout, or...