private void InitToolbar(View view) { try { var toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); if (toolbar != null) { GlobalContext.SetToolBar(toolbar, ""); SearchBox = view.FindViewById <SearchView>(Resource.Id.searchBox); SearchBox.SetIconifiedByDefault(false); SearchBox.OnActionViewExpanded(); SearchBox.Iconified = false; SearchBox.QueryTextSubmit += SearchViewOnQueryTextSubmit; SearchBox.QueryTextChange += SearchViewOnQueryTextChange; SearchBox.ClearFocus(); //Change text colors var editText = (EditText)SearchBox.FindViewById(Resource.Id.search_src_text); editText.SetHintTextColor(Color.White); editText.SetTextColor(Color.White); //Remove Icon Search ImageView searchViewIcon = (ImageView)SearchBox.FindViewById(Resource.Id.search_mag_icon); ViewGroup linearLayoutSearchView = (ViewGroup)searchViewIcon.Parent; linearLayoutSearchView.RemoveView(searchViewIcon); } } catch (Exception e) { Console.WriteLine(e); } }
private void InitToolbar(View view) { try { Toolbar toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); GlobalContext.SetToolBar(toolbar, Context.GetText(Resource.String.Lbl_Subscriptions)); } catch (Exception e) { Console.WriteLine(e); } }
private void InitToolbar(View view) { try { MainToolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); MainContext.SetToolBar(MainToolbar, " ", false); } catch (Exception e) { Console.WriteLine(e); } }
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 { var toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); if (toolbar != null) { GlobalContext.SetToolBar(toolbar, TypeVideo + " " + Context.GetText(Resource.String.Lbl_Videos)); } } catch (Exception e) { Console.WriteLine(e); } }
private void InitToolbar(View view) { try { var toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); if (toolbar != null) { GlobalContext.SetToolBar(toolbar, NamePlayList); } } catch (Exception e) { Console.WriteLine(e); } }
private void InitToolbar(View view) { try { var toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); if (toolbar != null) { string title = Context.GetString(Resource.String.Lbl_PopularChannels); GlobalContext.SetToolBar(toolbar, title); } } catch (Exception e) { Console.WriteLine(e); } }
private void InitToolbar(View view) { try { var toolbar = view.FindViewById <Toolbar>(Resource.Id.toolbar); if (toolbar != null) { string title = Context.GetString(Resource.String.Lbl_ExploreArticle); MainContext.SetToolBar(toolbar, title, false); } } catch (Exception e) { Console.WriteLine(e); } }
private void InitToolbar(View view) { try { ToolBar = view.FindViewById <Toolbar>(Resource.Id.toolbar); if (ToolBar != null) { string title = Methods.FunString.DecodeString(NameCategory); GlobalContext.SetToolBar(ToolBar, title); } } 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); } }
private void InitToolbar(View view) { try { ToolBar = view.FindViewById <Toolbar>(Resource.Id.toolbar); if (ToolBar != null) { GlobalContext.SetToolBar(ToolBar, SearchKey); //Close keyboard InputMethodManager inputManager = (InputMethodManager)Activity.GetSystemService(Context.InputMethodService); if (inputManager.IsActive) { inputManager = (InputMethodManager)Activity.GetSystemService(Context.InputMethodService); inputManager.HideSoftInputFromWindow(ToolBar.WindowToken, 0); } } } catch (Exception e) { Console.WriteLine(e); } }