I\'m always using onclick() event in most of my projects. But, I read about OnClickListener(). Can anyone tell what\'s the difference between these
onclick()
OnClickListener()
You can add android:onClick="your_method" attribute in your XML.
android:onClick="your_method"
Example: