| | |
| | | Width = Application.GetRealWidth(500), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Text = device.CommonDevice.DeviceEpointName, |
| | | Text = Common.LocalDevice.Current.GetDeviceEpointName(device.CommonDevice), |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | TextSize = 15, |
| | | IsBold=true |
| | |
| | | {
|
| | | ProgressBtn.X = ProgressBtnX + curtainSeekBar.NowProgressX- Application.GetMinReal(5);
|
| | | ProgressBtn.Text = mProgress + "%";
|
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 添加进度按钮 |
| | | /// </summary> |
| | | private void InitProgressBtnForCurtain(FrameLayout layout) |
| | | { |
| | | ProgressBtnX = curtainSeekBar.X - Application.GetMinReal(20); |
| | | ProgressBtn = new Button() |
| | | { |
| | | X = ProgressBtnX, |
| | | Y = curtainSeekBar.Y + curtainSeekBar.Height / 2 - Application.GetMinReal(180), |
| | | Width = Application.GetMinReal(135), |
| | | Height = Application.GetMinReal(104), |
| | | UnSelectedImagePath = "Item/ProgressBubbles.png", |
| | | Visible = false, |
| | | TextSize = 14, |
| | | IsBold = true, |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor |
| | | }; |
| | | layout.AddChidren(ProgressBtn); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// OnProgressButtonMove |
| | | /// </summary> |
| | | private void OnProgressButtonMoveForCurtain(int mProgress) |
| | | { |
| | | ProgressBtn.X = ProgressBtnX + curtainSeekBar.NowProgressX- Application.GetMinReal(5); |
| | | ProgressBtn.Text = mProgress + "%"; |
| | | } |
| | | |
| | | #endregion |