| | |
| | | {
|
| | | this.ScrollEnabled = false;
|
| | |
|
| | | this.listDevice = Common.LocalDevice.Current.GetDevicesByMac(i_deviceMac);
|
| | | this.listDevice = HdlDeviceCommonLogic.Current.GetDevicesByMac(i_deviceMac);
|
| | |
|
| | | //设置头部信息
|
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uBackLight));
|
| | |
| | |
|
| | | //点击状态
|
| | | var btnClickStatu = new NormalViewControl(600, 49, true);
|
| | | btnClickStatu.X = ControlCommonResourse.XXLeft;
|
| | | btnClickStatu.X = HdlControlResourse.XXLeft;
|
| | | btnClickStatu.Y = Application.GetRealHeight(207);
|
| | | btnClickStatu.TextSize = 12;
|
| | | btnClickStatu.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | |
| | | btnSwitch.IsSelected = !btnSwitch.IsSelected;
|
| | | energyModeInfo.enable = btnSwitch.IsSelected;
|
| | | //展开或者缩小的高度
|
| | | var value = Application.GetRealHeight(259 + 23) + ControlCommonResourse.ListViewRowHeight;
|
| | | var value = Application.GetRealHeight(259 + 23) + HdlControlResourse.ListViewRowHeight;
|
| | | if (btnSwitch.IsSelected == true)
|
| | | {
|
| | | frameBack.Height += value;
|
| | |
| | | }
|
| | |
|
| | | //当前亮度
|
| | | btnProgressView1.X = ControlCommonResourse.XXLeft;
|
| | | btnProgressView1.X = HdlControlResourse.XXLeft;
|
| | | btnProgressView1.Y = Application.GetRealHeight(161);
|
| | | btnProgressView1.TextSize = 12;
|
| | | btnProgressView1.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | |
| | | seekBar1.Progress = energyModeInfo.level;
|
| | |
|
| | | var btnTemp1 = new NormalViewControl(200, 49, true);
|
| | | btnTemp1.X = ControlCommonResourse.XXLeft;
|
| | | btnTemp1.X = HdlControlResourse.XXLeft;
|
| | | btnTemp1.Y = Application.GetRealHeight(325);
|
| | | btnTemp1.TextSize = 12;
|
| | | btnTemp1.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | |
| | | if (energyModeInfo.enable == true)
|
| | | {
|
| | | //展开或者缩小的高度
|
| | | var value = Application.GetRealHeight(259 + 23) + ControlCommonResourse.ListViewRowHeight;
|
| | | var value = Application.GetRealHeight(259 + 23) + HdlControlResourse.ListViewRowHeight;
|
| | | frameBack.Height += value;
|
| | | btnClickStatu.Y += value;
|
| | | frameLinght.Y += value;
|
| | |
| | | private void AddSixDryContactProgress(FrameLayout frameLinght)
|
| | | {
|
| | | var btnProgressView1 = new NormalViewControl(200, 49, true);
|
| | | btnProgressView1.X = ControlCommonResourse.XXLeft;
|
| | | btnProgressView1.X = HdlControlResourse.XXLeft;
|
| | | btnProgressView1.Y = Application.GetRealHeight(29);
|
| | | btnProgressView1.TextSize = 12;
|
| | | btnProgressView1.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | |
| | | seekBar1.Progress = linghtLevelInfo.panelDirectionsLevel;
|
| | |
|
| | | var btnTemp1 = new NormalViewControl(200, 49, true);
|
| | | btnTemp1.X = ControlCommonResourse.XXLeft;
|
| | | btnTemp1.X = HdlControlResourse.XXLeft;
|
| | | btnTemp1.Y = Application.GetRealHeight(193);
|
| | | btnTemp1.TextSize = 12;
|
| | | btnTemp1.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | |
| | | frameLinght.AddChidren(btnTemp2);
|
| | |
|
| | | //线
|
| | | var btnLine = new NormalViewControl(Application.GetRealWidth(965), ControlCommonResourse.BottomLineHeight, false);
|
| | | var btnLine = new NormalViewControl(Application.GetRealWidth(965), HdlControlResourse.BottomLineHeight, false);
|
| | | btnLine.Y = Application.GetRealHeight(311);
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | |
| | | private void AddSevenDryContactProgress(FrameLayout frameLinght)
|
| | | {
|
| | | var btnProgressView1 = new NormalViewControl(200, 49, true);
|
| | | btnProgressView1.X = ControlCommonResourse.XXLeft;
|
| | | btnProgressView1.X = HdlControlResourse.XXLeft;
|
| | | btnProgressView1.Y = Application.GetRealHeight(369);
|
| | | btnProgressView1.TextSize = 12;
|
| | | btnProgressView1.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | |
| | | seekBar1.Progress = linghtLevelInfo.panelBacklightLevel;
|
| | |
|
| | | var btnTemp1 = new NormalViewControl(200, 49, true);
|
| | | btnTemp1.X = ControlCommonResourse.XXLeft;
|
| | | btnTemp1.X = HdlControlResourse.XXLeft;
|
| | | btnTemp1.Y = Application.GetRealHeight(533);
|
| | | btnTemp1.TextSize = 12;
|
| | | btnTemp1.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | |
| | | frameLinght.AddChidren(btnTemp2);
|
| | |
|
| | | //线
|
| | | var btnLine = new NormalViewControl(Application.GetRealWidth(965), ControlCommonResourse.BottomLineHeight, false);
|
| | | var btnLine = new NormalViewControl(Application.GetRealWidth(965), HdlControlResourse.BottomLineHeight, false);
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLine.Y = Application.GetRealHeight(651);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|