setupWithSearchBar

open fun setupWithSearchBar(@Nullable searchBar: SearchBar)

Sets up this SearchView with an SearchBar, which will result in the being shown when the SearchBar is clicked. This behavior will be set up automatically if the SearchBar and SearchView are in a and the SearchView is anchored to the SearchBar.