Ejemplo n.º 1
0
 public SearchHandlerAppearanceTracker(IShellSearchView searchView, IShellContext shellContext)
 {
     _shellContext  = shellContext;
     _searchHandler = searchView.SearchHandler;
     _control       = searchView.View;
     _searchHandler.PropertyChanged += SearchHandlerPropertyChanged;
     _editText = (_control as ViewGroup).GetChildrenOfType <EditText>().FirstOrDefault();
     UpdateSearchBarColors();
     UpdateFont();
     UpdateHorizontalTextAlignment();
     UpdateVerticalTextAlignment();
     UpdateInputType();
 }
 public SearchHandlerAppearanceTracker(IShellSearchView searchView)
 {
     _searchHandler = searchView.SearchHandler;
     _control       = searchView.View;
     _searchHandler.PropertyChanged      += SearchHandlerPropertyChanged;
     _searchHandler.FocusChangeRequested += SearchHandlerFocusChangeRequested;
     _editText          = (_control as ViewGroup).GetChildrenOfType <EditText>().FirstOrDefault();
     _textColorSwitcher = new TextColorSwitcher(_editText.TextColors, false);
     _hintColorSwitcher = new TextColorSwitcher(_editText.HintTextColors, false);
     UpdateSearchBarColors();
     UpdateFont();
     UpdateTextAlignment();
     UpdateInputType();
 }
Ejemplo n.º 3
0
 public SearchHandlerAppearanceTracker(IShellSearchView searchView, IShellContext shellContext)
 {
     _shellContext  = shellContext;
     _searchHandler = searchView.SearchHandler;
     _control       = searchView.View;
     _searchHandler.PropertyChanged      += SearchHandlerPropertyChanged;
     _searchHandler.FocusChangeRequested += SearchHandlerFocusChangeRequested;
     _editText                    = (_control as ViewGroup).GetChildrenOfType <AppCompatEditText>().FirstOrDefault();
     DefaultTextColors            = _editText.TextColors;
     DefaultPlaceholderTextColors = _editText.HintTextColors;
     UpdateSearchBarColors();
     UpdateFont();
     UpdateHorizontalTextAlignment();
     UpdateVerticalTextAlignment();
     UpdateInputType();
 }