Пример #1
0
 public void SetBackButtonTheme(IImageButtonTheme themeName)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         _holder.BackImageButton.SetTheme(themeName);
     });
 }
Пример #2
0
 public void SetBackButtonTheme(IImageButtonTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _backButton.SetTheme((IImageViewTheme)theme);
     });
 }
Пример #3
0
 public void MoreOptionsButtonTheme(IImageButtonTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _optionButton.SetTheme((IImageViewTheme)theme);
     });
 }
Пример #4
0
 public void MoreOptionsButtonTheme(IImageButtonTheme theme)
 {
     Application.SynchronizationContext.Post(_ =>
     {
         _holder.OptionsImageButton.SetTheme(theme);
     }, null);
 }
Пример #5
0
 public void SetFavoriteState(bool state, IImageButtonTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _favoriteButton.SetTheme((IButtonTheme)theme);
     });
     isFavorite = state;
 }
Пример #6
0
 public void SetFavoriteState(bool state, IImageButtonTheme theme)
 {
     Application.SynchronizationContext.Post(_ =>
     {
         _holder.FavoriteImageButton.SetTheme(theme);
     }, null);
     isFavorite = state;
 }
Пример #7
0
 public PostHeaderStylesHolderIOS(ThemeParser <T> themeParser)
 {
     MoreOptionsButtonTheme = themeParser.GetThemeByName <IImageButtonTheme>(_moreOptionsButtonTheme);
     FirstLastNameTheme     = themeParser.GetThemeByName <ITextViewTheme>(_firstLastNameTheme);
     DateTheme               = themeParser.GetThemeByName <ITextViewTheme>(_dateTheme);
     QuoteTheme              = themeParser.GetThemeByName <ITextViewTheme>(_quoteTheme);
     BuySellTheme            = themeParser.GetThemeByName <ITextViewTheme>(_buySellTheme);
     BuySellValueTheme       = themeParser.GetThemeByName <ITextViewTheme>(_buySellValueTheme);
     ForecastTheme           = themeParser.GetThemeByName <ITextViewTheme>(_forecastTheme);
     CurrentPriceTheme       = themeParser.GetThemeByName <ITextViewTheme>(_currentPriceTheme);
     DiffTheme               = themeParser.GetThemeByName <ITextViewTheme>(_diffTheme);
     DiffValueTheme          = themeParser.GetThemeByName <ITextViewTheme>(_diffValueTheme);
     DefaultAvatar           = themeParser.GetThemeByName <IImageViewTheme>(_defaultAvatar);
     FavoriteStateActive     = themeParser.GetThemeByName <IImageButtonTheme>(_favoriteStateActive);
     FavoriteStateNone       = themeParser.GetThemeByName <IImageButtonTheme>(_favoriteStateNone);
     RecommendSellImage      = themeParser.GetThemeByName <IImageViewTheme>(_recommendSellImage);
     RecommendBuyImage       = themeParser.GetThemeByName <IImageViewTheme>(_recommendBuyImage);
     DifferenceValuePositive = themeParser.GetThemeByName <ITextViewTheme>(_differenceValuePositive);
     DifferenceValueNegative = themeParser.GetThemeByName <ITextViewTheme>(_differenceValueNegative);
     CurrentPriceImgUp       = themeParser.GetThemeByName <IImageViewTheme>(_currentPriceImgUp);
     CurrentPriceImgDown     = themeParser.GetThemeByName <IImageViewTheme>(_currentPriceImgDown);
     StateOnline             = themeParser.GetThemeByName <IImageButtonTheme>(_stateOnline);
     StateOffline            = themeParser.GetThemeByName <IImageButtonTheme>(_stateOffline);
 }
Пример #8
0
 public void SetBackButtonTheme(IImageButtonTheme themeName)
 {
     _backImageButton.SetTheme((IImageViewTheme)themeName);
 }
Пример #9
0
 public void SetFavoriteState(bool state, IImageButtonTheme theme)
 {
 }
Пример #10
0
 public void SetBackButtonTheme(IImageButtonTheme theme)
 {
     _backButton.Image        = (UIImage)theme.Image;
     _navigationBar.TintColor = (UIColor)theme.TintColor;
 }
Пример #11
0
 public void SetBackButtonTheme(IImageButtonTheme theme)
 {
     _holder.ImageButton.SetTheme(theme);
 }
Пример #12
0
 public static void SetTheme(this ImageButton imageButton, IImageButtonTheme theme)
 {
     SetTheme((ImageView)imageButton, (IImageViewTheme)theme);
 }