Android Button

android.widget.ImageButton is used to create a button with image in android app. It is similar with android Button object. You can also set an onClickListener to it to process button […]

android calculator example thumbnail

This example will show you how to use android.widget.TableLayout and android.widget.Button to implement an android calculator application. It is a regular calculator which can execute +, -, * and / operation.

android button onclick example thumbnail

android.widget.Button is a frequently used widget in android application. You can add as many buttons as you need in a layout view object. But how to listen and response the […]

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).