Android - Button

Card Puncher Data Processing


There are three standard types of buttons:

  • Floating action button: A circular material button that lifts and displays an ink reaction on press.
  • Raised button: A typically rectangular material button that lifts and displays ink reactions on press.
  • Flat button: A button made of ink that displays ink reactions on press but does not lift.



Floating Button

A Floating Action Button is a reference/android/widget/Checkable.html view distinguished by a circled icon floating above the UI, with special motion behaviors.


<Button android:id="@+id/button"
            android:text="Hello, I am a Button" />

Documentation / Reference

Discover More
Android Xml Layout Attribute Reference
Android - Layout File (XML)

A layout XML is a declarative way of creating an UI. To define the GUI in android, you can do it: at runtime in the code with the ViewGroup object (UI container) and View obejct (widgets) at load...

Share this page:
Follow us:
Task Runner