Change button states programmatically.

Monday, 05 August 2013 by

A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touches it. A Button widget can exist in one of several different states (pressed, focused, or niether) and, using a state list drawable,  different background image can be provided for each state. Here