Button Example in Android

Button, a push-button is simple widget of Android which is used to perform any action when user click or press it.

We learn about simple button and its event. Simple example of to show text when button is clicked.
activity_main.xml

ManiActivity.java

Now run project, our output look likes below,

android-button-example-skynils

Download Project.

downlod

Now see next tutorial Linear Layout in Android.