コード例 #1
0
 public void SetWeatherBackground(LocationPanelViewModel panelView)
 {
     // Background
     Glide.With(Context)
     .Load(panelView.Background)
     .Apply(new RequestOptions()
            .CenterCrop()
            .Error(colorDrawable)
            .Placeholder(colorDrawable))
     .Into(bgImageView);
 }
コード例 #2
0
        public void SetWeather(LocationPanelViewModel panelView)
        {
            locationNameView.Text    = panelView.LocationName;
            locationTempView.Text    = panelView.CurrTemp;
            locationWeatherIcon.Text = panelView.WeatherIcon;
            Tag = panelView.LocationData;

            if (panelView.LocationName != null && Tag != null)
            {
                ShowLoading(false);
            }
        }
コード例 #3
0
 public LocationPanel(Context context, LocationPanelViewModel panelView) :
     base(context)
 {
     Initialize(context);
     SetWeather(panelView);
 }