Android Layer List

android tabhost example

android.widget.TabHost is a widget that can add more tabs in android app. Each tab can has it’s own content. This article will show you examples about how to use it.

android tab example

This article will show you two examples. One is a Tab example which implemented by android selector and layer-list drawable object. The other is a shadow button implemented by layer-list.

button selector drawable xml file

This example will show you how to use android selector drawable to make a button to show different background color in different button states(disable, pressed, unpressed).

android my layer list example

android.graphics.drawable.LayerDrawable is a drawable object that manages arrays of other drawable objects in desired order. Each drawable object in the layer list is drawn in the order of the list, […]