What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-15 11:17:02
android searchview in toolbar
You have to use Appcompat library for that. Which is used like below: dashboard.xml <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http:... Add solution -
Kotlin 2021-08-30 13:32:01
search bar android studio kotlin
override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.search_menu, menu) val searchItem: MenuItem = menu.findItem(R.id.action_search) if (searchItem != null) { searchView = MenuItemCompat.getActionView(searchI... Add solution -
Other 2021-08-30 02:27:02
android add search to action bar
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { val menulayout = inflater.inflate(R.menu.yourmenu,menu) val searchManager = requireContext().getSystemService(Context.SEARCH_SERVICE) as SearchManager val se... Add solution