Android xml : add click listener to button code example Example: onclick method android public void clickFunction (View view){}