public override void OnCreateOptionsMenu(IMenu menu, MenuInflater inflater) { menu.Clear(); inflater.Inflate(Resource.Menu.route_stops_view_menu, menu); var refreshItem = menu.FindItem(Resource.Id.menu_refresh); refreshItem.SetOnMenuItemClickListener(this); var searchMenuItem = menu.FindItem(Resource.Id.action_search); var searchView = MenuItemCompat.GetActionView(searchMenuItem); _searchView = searchView.JavaCast <SearchView>(); _searchView.QueryHint = AppResources.route_stops_view_search_hint; _searchView.SubmitButtonEnabled = false; _searchView.SetOnQueryTextListener(this); _searchView.SetOnQueryTextFocusChangeListener(this); _searchView.Iconified = true; }