private void InitToolbar(View view) { try { var toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); GlobalContext.SetToolBar(toolbar, AppSettings.ApplicationName, false); GlobalContext.SetSupportActionBar(toolbar); } catch (Exception e) { Console.WriteLine(e); } }
private void InitToolbar(View view) { try { Toolbar toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); GlobalContext.SetToolBar(toolbar, "", false); GlobalContext.SetSupportActionBar(toolbar); SearchBox = view.FindViewById <SearchView>(Resource.Id.TrendingSearchBox); SearchBox.SetIconifiedByDefault(false); SearchBox.SetOnClickListener(this); SearchBox.SetOnSearchClickListener(this); SearchBox.SetOnQueryTextFocusChangeListener(this); } catch (Exception e) { Console.WriteLine(e); } }