| | |
| | | frameBack.Height = Application.GetRealHeight(170);
|
| | | bodyFrameLayout.AddChidren(frameBack);
|
| | |
|
| | | //当前亮度(先声明,为了对应IOS的折叠后,没有完全遮挡的问题)
|
| | | var btnProgressView1 = new NormalViewControl(200, 49, true);
|
| | | var btnProgress1 = new NormalViewControl(200, 49, true);
|
| | |
|
| | | //节能模式
|
| | | frameBack.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uEnergyConservationMode), 400);
|
| | | //开关控件
|
| | |
| | | frameBack.Height += value;
|
| | | btnClickStatu.Y += value;
|
| | | frameLinght.Y += value;
|
| | | btnProgressView1.Visible = true;
|
| | | btnProgress1.Visible = true;
|
| | | }
|
| | | else
|
| | | {
|
| | | frameBack.Height -= value;
|
| | | btnClickStatu.Y -= value;
|
| | | frameLinght.Y -= value;
|
| | | btnProgressView1.Visible = false;
|
| | | btnProgress1.Visible = false;
|
| | | }
|
| | | //数据变更
|
| | | valueChanged = true;
|
| | |
| | | }
|
| | |
|
| | | //当前亮度
|
| | | var btnProgressView1 = new NormalViewControl(200, 49, true);
|
| | | btnProgressView1.X = ControlCommonResourse.XXLeft;
|
| | | btnProgressView1.Y = Application.GetRealHeight(161);
|
| | | btnProgressView1.TextSize = 12;
|
| | | btnProgressView1.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | btnProgressView1.TextID = R.MyInternationalizationString.uNowLuminance;
|
| | | frameBack.AddChidren(btnProgressView1);
|
| | | var btnProgress1 = new NormalViewControl(200, 49, true);
|
| | | btnProgressView1.Visible = false;
|
| | | btnProgress1.X = Application.GetRealWidth(222);
|
| | | btnProgress1.Y = Application.GetRealHeight(158);
|
| | | btnProgress1.TextSize = 12;
|
| | | btnProgress1.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | btnProgress1.Text = energyModeInfo.level + "%";
|
| | | frameBack.AddChidren(btnProgress1);
|
| | | btnProgress1.Visible = false;
|
| | |
|
| | | //进度条
|
| | | var seekBar1 = new SeekBarControl();
|
| | |
| | | frameBack.Height += value;
|
| | | btnClickStatu.Y += value;
|
| | | frameLinght.Y += value;
|
| | |
|
| | | btnProgressView1.Visible = true;
|
| | | btnProgress1.Visible = true;
|
| | | }
|
| | | }
|
| | |
|