step by step on click listener on android studio code example
Example 1: button android stdui
Button b = findById();
Example 2: android java buttons
public void clickFunction(View view)
/* Text attributes + onClick (in this case: clickFunction)
Basics: Constraint list / layout margin */