| | |
| | | //清洗滤网提示的FrameLayout
|
| | | this.frameClrean = new FrameLayout();
|
| | | frameClrean.Width = Application.GetRealWidth(600);
|
| | | frameClrean.Height = Application.GetMinRealAverage(69);
|
| | | frameClrean.Height = this.GetPictrueRealSize(69);
|
| | | frameClrean.X = ControlCommonResourse.XXLeft;
|
| | | frameClrean.Y = Application.GetRealHeight(35);
|
| | | frameWhiteBack.AddChidren(frameClrean);
|
| | |
| | | //空调控件的容器
|
| | | var frameAcBack = new FrameLayout();
|
| | | frameAcBack.Y = Application.GetRealHeight(412);
|
| | | frameAcBack.Width = Application.GetMinRealAverage(671);
|
| | | frameAcBack.Height = Application.GetMinRealAverage(671);
|
| | | frameAcBack.Width = this.GetPictrueRealSize(671);
|
| | | frameAcBack.Height = this.GetPictrueRealSize(671);
|
| | | frameAcBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameWhiteBack.AddChidren(frameAcBack);
|
| | |
|
| | |
| | |
|
| | | //空调控件里面的那个显示制热,制冷的控件
|
| | | this.btnNowModeView = new NormalViewControl(200, 55, true);
|
| | | btnNowModeView.Y = Application.GetMinRealAverage(184);
|
| | | btnNowModeView.Y = this.GetPictrueRealSize(184);
|
| | | btnNowModeView.Gravity = Gravity.CenterHorizontal;
|
| | | btnNowModeView.Text = DeviceAcDetailCardMethord.GetModeNameByModeId(deviceAc.currentSystemMode);
|
| | | btnNowModeView.TextSize = 12;
|
| | |
| | | this.btnReduce = new IconViewControl(81);
|
| | | btnReduce.CanClick = isAcOpen;
|
| | | btnReduce.UnSelectedImagePath = "AC/Reduce.png";
|
| | | btnReduce.X = Application.GetMinRealAverage(132);
|
| | | btnReduce.Y = Application.GetMinRealAverage(268);
|
| | | btnReduce.X = this.GetPictrueRealSize(132);
|
| | | btnReduce.Y = this.GetPictrueRealSize(268);
|
| | | frameAcBack.AddChidren(btnReduce);
|
| | | btnReduce.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | |
| | | this.btnAdd = new IconViewControl(81);
|
| | | btnAdd.CanClick = isAcOpen;
|
| | | btnAdd.UnSelectedImagePath = "AC/Add.png";
|
| | | btnAdd.X = frameAcBack.Width - Application.GetMinRealAverage(81 + 132);
|
| | | btnAdd.X = frameAcBack.Width - this.GetPictrueRealSize(81 + 132);
|
| | | btnAdd.Y = btnReduce.Y;
|
| | | frameAcBack.AddChidren(btnAdd);
|
| | | btnAdd.ButtonClickEvent += (sender, e) =>
|
| | |
| | |
|
| | | //℃
|
| | | var btnUint = new NormalViewControl(100, 66, true);
|
| | | btnUint.Y = Application.GetMinRealAverage(366);
|
| | | btnUint.Y = this.GetPictrueRealSize(366);
|
| | | btnUint.Gravity = Gravity.CenterHorizontal;
|
| | | btnUint.TextAlignment = TextAlignment.Center;
|
| | | btnUint.Text = "℃";
|