Button Widget in Android Tutorial

tutorial and example
tutorial and example

Explanation:

Button is a widget under Buttons section which is used to execute specific code.

Example:

XML file:

Java File:

Before Click:

 

 After First Click:

 

 After Second Click: