| | |
| | | var contentView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(74), |
| | | Height = Application.GetRealHeight(Application.DesignHeight - 74), |
| | | Height = Application.GetRealHeight(Application.DesignHeight)- Application.GetRealHeight(74), |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = 18, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | electricityGenerationView.AddChidren(pvGenerate_TodayValuesButton); |
| | | |
| | |
| | | TextSize = 18, |
| | | TextAlignment = TextAlignment.TopRight, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | #if __IOS__ |
| | | pvLoad_TodayValuesButton.Y = Application.GetRealWidth(34); |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 24, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | powerGenerationView.AddChidren(pvPower_ValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 18, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | pvEleGenerationInfoView.AddChidren(pvGeneration_TodayValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 18, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | pvEleGenerationInfoView.AddChidren(pvGeneration_MonthValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 18, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | pvEleGenerationInfoView.AddChidren(pvGeneration_YearValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 24, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | powerUsageView.AddChidren(loadElec_ValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 18, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | electricityUsageStatusView.AddChidren(powerUsage_TodayValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 18, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | electricityUsageStatusView.AddChidren(loadElec_MonthValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 18, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | electricityUsageStatusView.AddChidren(powerUsage_YearValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 24, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | esRunStatus_ChargeValuesView.AddChidren(esRunStatus_ChargeValuesButton); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = 24, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | esRunStatus_DischargeValuesView.AddChidren(esRunStatus_DischargeValuesButton); |
| | | |
| | |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(142), |
| | | Height = Application.GetRealWidth(142),//142 |
| | | ScrollEnabled = false, |
| | | }; |
| | | contentView.AddChidren(socialContributionView); |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | socialContribution_Info1_ValuesButton.Width = socialContribution_Info1_ValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | socialContribution_InfoView_1.AddChidren(socialContribution_Info1_ValuesButton); |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | socialContribution_Info2_ValuesButton.Width = socialContribution_Info2_ValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | socialContribution_InfoView_2.AddChidren(socialContribution_Info2_ValuesButton); |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | IsBold = true, |
| | | FontName = "BEBAS", |
| | | }; |
| | | socialContribution_Info3_ValuesButton.Width = socialContribution_Info3_ValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | socialContribution_InfoView_3.AddChidren(socialContribution_Info3_ValuesButton); |