addHeaderView

open fun addHeaderView(@NonNull headerView: View)

Add a header view to this SearchView, which will be placed above the search text area.

Note: due to complications with the expand/collapse animation, a header view is intended to be used with a standalone SearchView which slides up/down instead of morphing from an SearchBar.