1.Using the android:onClick XML attribute where you just use the name of a public method with the signaturevoid name(View v)
2. By using the setOnClickListener method where you pass an object that implement the OnClickListener interface.
Which one is correct ways ? Which is better techniques performance wise?
Please Expalin why
Last updated:7/22/2015 8:09:27 AM