Event Handling Anonymous Inner Class in Android

 

In this video we see What is anonymous inner class? When we create class within a class without declared class name, this is known as anonymous inner class. How Event Handlers Work?? In every situation, When an event happens and An event listener register to the event, the event listener calls the Event Handlers, which is the method that actually handles the event. OnClickListener() : It is call when the user either clicks or touches on any widget like button, text, image etc. You will use onClick() event handler to handle such event.


Leave a Reply

Your email address will not be published. Required fields are marked *