Hi friends it is observed that
sometimes it observed that may of the events occur at button click, so in java
we use OnClickListener to handle these events. As android uses java it also
uses the similar syntax. Due to this the size of code increases so we can make
proper use the .xml file provided to us where we can connect all the attributes
of the layout as we need.