From the reference docs,
SearchView.setOnQueryTextFocusChangeListener - Sets a listener to inform when the focus of the query text field changes.
and
View.setOnFocusChangeListener - Register a callback to be invoked when focus of this view changed.
So, in the case of a SearchView
what is the difference between the two? Why did they need to provide setOnQueryTextFocusChangeListener
when the SearchView
already inherits setOnFocusChangedListener
from View
class?