MaterialSearchView icon indicating copy to clipboard operation
MaterialSearchView copied to clipboard

showSearch method is not documented

Open hshahdoost opened this issue 7 years ago • 1 comments

It might sound simple, But showSearch method is not in the documentation. A simple example of method usage might be useful.

hshahdoost avatar Apr 09 '17 13:04 hshahdoost

Hello, I used showSearch to open the component when my activity is creating. in kotlin

override fun onCreateOptionsMenu(menu: Menu?): Boolean { menuInflater.inflate(R.menu.search, menu)

    val item = menu?.findItem(R.id.action_search)
    search_view.setMenuItem(item)
    search_view.showSearch()
    return true
}

Dont use it in oncreate method.

LeonardoValderas avatar Dec 04 '18 11:12 LeonardoValderas