| | |
| | | |
| | | #if __IOS__ |
| | | pvGenerate_TodayValuesButton.TextAlignment = TextAlignment.TopLeft; |
| | | pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(4); |
| | | #else |
| | | pvGenerate_TodayValuesButton.TextAlignment = TextAlignment.BottomLeft; |
| | | pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth(); |
| | | pvGenerate_TodayValuesButton.Y = Application.GetRealWidth(37); |
| | | pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(4); |
| | | #endif |
| | | pvGenerate_todayUintButton = new Button() |
| | | { |
| | | Y = Application.GetRealWidth(45), |
| | | Y = Application.GetRealWidth(43), |
| | | Height = Application.GetRealWidth(17), |
| | | Text = "kw", |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | |
| | | |
| | | var loadEle_TodayUintButton = new Button() |
| | | { |
| | | Y = Application.GetRealWidth(45), |
| | | Y = Application.GetRealWidth(43), |
| | | Height = Application.GetRealWidth(17), |
| | | Text = "kw", |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | |
| | | TextAlignment = TextAlignment.TopRight, |
| | | IsBold = true, |
| | | }; |
| | | #if __IOS__ |
| | | #else |
| | | pvLoad_TodayValuesButton.Y = Application.GetRealWidth(37); |
| | | pvLoad_TodayValuesButton.X = Application.GetRealWidth(81 - 16) - loadEle_TodayUintButton.Width; |
| | | #endif |
| | | loadEleView.AddChidren(pvLoad_TodayValuesButton); |
| | | |
| | | pvLoad_TotalValuesButton = new Button() |
| | |
| | | #region 实时充电功率 |
| | | var esRunStatus_ChargeValuesView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(17), |
| | | X = Application.GetRealWidth(15), |
| | | Width = Application.GetRealWidth(128), |
| | | Height = Application.GetRealWidth(128), |
| | | }; |
| | |
| | | #region 实时放电功率 |
| | | var esRunStatus_DischargeValuesView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(132+15), |
| | | X = Application.GetRealWidth(132+13), |
| | | Width = Application.GetRealWidth(128), |
| | | Height = Application.GetRealWidth(128), |
| | | }; |
| | |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | IsBold = true, |
| | | }; |
| | | #if __IOS__ |
| | | socialContribution_Info1_ValuesButton.Width = socialContribution_Info1_ValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | #else |
| | | socialContribution_Info1_ValuesButton.Width = socialContribution_Info1_ValuesButton.GetTextWidth(); |
| | | #endif |
| | | socialContribution_InfoView_1.AddChidren(socialContribution_Info1_ValuesButton); |
| | | |
| | | var socialContribution_Info1_UintButton = new Button() |
| | |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | IsBold = true, |
| | | }; |
| | | #if __IOS__ |
| | | socialContribution_Info2_ValuesButton.Width = socialContribution_Info2_ValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | #else |
| | | socialContribution_Info2_ValuesButton.Width = socialContribution_Info2_ValuesButton.GetTextWidth(); |
| | | #endif |
| | | socialContribution_InfoView_2.AddChidren(socialContribution_Info2_ValuesButton); |
| | | |
| | | var socialContribution_Info2_UintButton = new Button() |
| | |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | IsBold = true, |
| | | }; |
| | | #if __IOS__ |
| | | socialContribution_Info3_ValuesButton.Width = socialContribution_Info3_ValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | #else |
| | | socialContribution_Info3_ValuesButton.Width = socialContribution_Info3_ValuesButton.GetTextWidth(); |
| | | #endif |
| | | socialContribution_InfoView_3.AddChidren(socialContribution_Info3_ValuesButton); |
| | | |
| | | var socialContribution_Info3_UintButton = new Button() |