This class allows a customized widget class to implement TitleViewAdapter.Provider
and expose TitleViewAdapter methods to containing fragment (e.g. BrowseFragment or
DetailsFragment).
The title view must have a search orb view (getSearchAffordanceView() aligned to start
and can typically have a branding Drawable and or title text aligned to end. The branding part
is fully open to customization: not necessary to be a drawable or text.
Enables or disables any view animations. This method is called to save CPU cycle for example
stop search view breathing animation when containing fragment is paused.
Parameters
enable
boolean: True to enable animation, false otherwise.
Sets a click listener for the search affordance view.
The presence of a listener will change the visibility of the search
affordance in the fragment title. When set to non-null, the title will
contain an element that a user may click to begin a search.
The listener's onClick method
will be invoked when the user clicks on the search element.
Parameters
listener
View.OnClickListener: The listener to call when the search element is clicked.