| | |
| | | { |
| | | Y = Application.GetRealHeight(140 + 160), |
| | | X = Application.GetRealWidth(78), |
| | | Height = Application.GetRealHeight(12), |
| | | Height = Application.GetRealWidth(12), |
| | | Width = Application.GetRealWidth(918 - 120), |
| | | UnSelectedImagePath = "ZigeeLogic/seek.png", |
| | | Gravity = Gravity.CenterHorizontal |
| | | }; |
| | | completeView.Show(2).AddChidren(seekIconBtn);
|
| | | |
| | | var horizontalSeekBarVol = new UserCenter.SeekBarControl(918)
|
| | | {
|
| | | ProgressBarColor = 0x00000000,// ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色
|
| | | SeekBarBackgroundColor = 0x00000000,
|
| | | SeekBarViewHeight = Application.GetRealHeight(20),
|
| | | SeekBarPadding = Application.GetRealWidth(60),
|
| | | MinValue = 30,
|
| | | MaxValue = 60,
|
| | | ProgressChangeDelayTime = 0,
|
| | | };
|
| | | completeView.Show(2).AddChidren(seekIconBtn); |
| | | |
| | | var horizontalSeekBarVol = new UserCenter.SeekBarControl(918) |
| | | { |
| | | ProgressBarColor = 0x00000000,// ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色 |
| | | SeekBarBackgroundColor = 0x00000000, |
| | | SeekBarViewHeight = Application.GetRealHeight(20), |
| | | SeekBarPadding = Application.GetRealWidth(60), |
| | | MinValue = 30, |
| | | MaxValue = 60, |
| | | ProgressChangeDelayTime = 0, |
| | | }; |
| | | completeView.Show(2).AddChidren(horizontalSeekBarVol); |
| | | horizontalSeekBarVol.Y = seekIconBtn.Y - (horizontalSeekBarVol.Height - seekIconBtn.Height) / 2; |
| | | horizontalSeekBarVol.ShowCustomTextView(Application.GetRealWidth(200), 12, ZigbeeColor.Current.LogicBtnCancelColor); |
| | |
| | | { |
| | | var intvalue = int.Parse(value["Data1"]); |
| | | var lightbrightnessvalue = 1000000 / (intvalue * 100); |
| | | horizontalSeekBarVol.Progress = lightbrightnessvalue;
|
| | | horizontalSeekBarVol.Progress = lightbrightnessvalue; |
| | | |
| | | break; |
| | | } |
| | | |
| | | } |
| | | }
|
| | | var intValue = horizontalSeekBarVol.Progress;
|
| | | if (intValue == 0) { intValue = 30; }
|
| | | } |
| | | var intValue = horizontalSeekBarVol.Progress; |
| | | if (intValue == 0) { intValue = 30; } |
| | | horizontalSeekBarVol.SetCustomText(intValue * 100 + "K"); |
| | | } |
| | | break; |