private void InitToolbar(View view) { try { var toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); GlobalContext.SetToolBar(toolbar, "", false); SearchBox = view.FindViewById <SearchView>(Resource.Id.browseSearchBox); SearchBox.SetIconifiedByDefault(false); if ((int)Build.VERSION.SdkInt < 23) { SearchBox.SetOnClickListener(this); SearchBox.SetOnSearchClickListener(this); SearchBox.SetOnQueryTextFocusChangeListener(this); } //Change text colors var editText = SearchBox.FindViewById <EditText>(Resource.Id.search_src_text); editText.SetHintTextColor(Color.Gray); editText.SetTextColor(Color.Black); Methods.SetFocusable(editText); editText.Touch += EditTextOnClick; ImageView searchViewIcon = (ImageView)SearchBox.FindViewById(Resource.Id.search_mag_icon); searchViewIcon.SetColorFilter(Color.Gray); } catch (Exception e) { Console.WriteLine(e); } }