Multiple choice

How can avoid to creating anonymous classes for click handling?

  1. Implement the click interfaces in your activity and pass in this when registering a click listener.

  2. Extends the click interfaces in your activity and pass in this when registering a click listener.

  3. Implement the click listner interfaces in your activity and pass in this when registering a click listener.

  4. Implement the click interfaces in anywhere and pass in this when registering a click listener.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To avoid creating anonymous classes for click handling, you can Implement the click interfaces in your activity and pass in this when registering a click listener.