Events in Android require a listener and a handler. This is evident where we see in a Java class that there is an Onclicklistener and an Onclick method within that listener.
I'm confused with the XML Onclick method however, because it doesn't have an Onclicklistener. Are they always neccesary, or is the listener hidden in this case?
<Button
android:Onclick="myMethod"
/>
public void myMethod(View view)
{
//do magic here
}