M
M
mixa0002021-01-07 03:45:51
Android
mixa000, 2021-01-07 03:45:51

How does new View.onClickListener() work?

Button click handling:

button.setOnClickListener(new View.onClickListener(){
public void onClick (View view){........}
});
)

What is new View.onClickListener() and how does it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-01-07
@mixa000

This is the creation of an anonymous class. Works as an anonymous class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question