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:

 

Pin It on Pinterest

Share This