Just Simple Info

Pages

Android StateListDrawable Example

StateListDrawable is android drawable that response on the current state of element (' pressed ',' focus', ' selected','etc').
Some element has default drawable that automatically change on press, focus, selected ,etc like Button, CheckBox, RadioButton. etc.

Android Custom ListView Adapter Example


ListView in android arrange views vertically scrollable automatically. If you want to display your items vertically and make it scrollable the ListView is the best choice but customizing ListView appearance get little tricky.

Now we are going to customize the background color and put icon on the left corner of each item.