Esempio n. 1
0
        protected override void UpdateWeatherPart(Context context, RemoteViews view, AppWidgetSettings settings, bool isDemoMode)
        {
            if (!AppSettings.Default.LandOrientation)
            {
                var topId = settings.WidgetIconStyle == IconStyles.FancyWidgets
                    ? Resource.Dimension.wgviewImgConditionPaddingFancyWidgets
                    : Resource.Dimension.wgviewImgConditionPadding;
                view.SetViewPadding(Resource.Id.viewImgCondition, 0, (int)context.Resources.GetDimension(topId),
                                    0, 0);
            }

            base.UpdateWeatherPart(context, view, settings, isDemoMode);
        }