old mode 100755
new mode 100644
| | |
| | | /// 收藏按钮 |
| | | /// </summary> |
| | | private Button collectionBtn; |
| | | |
| | | |
| | | /// <summary> |
| | | /// 开关 |
| | | /// </summary> |
| | |
| | | /// 滑条 |
| | | /// </summary> |
| | | private WaveSeekBar levelSeekBar; |
| | | |
| | | |
| | | |
| | | private Button StatuBtn; |
| | | /// <summary> |
| | |
| | | break; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | else if (typeTag == "OnlineStatusChange") |
| | | { |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | levelSeekBar.WaveColor = ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor; |
| | | } |
| | | |
| | | levelSeekBar.OnStartTrackingTouchEvent += (sender, e) => |
| | | { |
| | | OnProgressButtonMove(levelSeekBar.Progress); |
| | | levelSeekBar.IsProgressTextShow = false; |
| | | ProgressBtn.Visible = true; |
| | | }; |
| | | |
| | | levelSeekBar.OnStopTrackingTouchEvent += (sender, e) => |
| | | { |
| | | ProgressBtn.Visible = false; |
| | | levelSeekBar.IsProgressTextShow = true; |
| | | }; |
| | | |
| | | levelSeekBar.OnProgressChangedEvent += (send2, e2) => |
| | | levelSeekBar.OnStartTrackingTouchEvent += (sender, e) =>
|
| | | {
|
| | | OnProgressButtonMove(levelSeekBar.Progress);
|
| | | levelSeekBar.IsProgressTextShow = false;
|
| | | ProgressBtn.Visible = true;
|
| | | };
|
| | |
|
| | | levelSeekBar.OnStopTrackingTouchEvent += (sender, e) =>
|
| | | {
|
| | | ProgressBtn.Visible = false;
|
| | | levelSeekBar.IsProgressTextShow = true;
|
| | | };
|
| | |
|
| | | levelSeekBar.OnProgressChangedEvent += (send2, e2) =>
|
| | | { |
| | | |
| | | OnProgressButtonMove(e2); |
| | | |
| | | //判断是否300ms屏蔽 |
| | | if (levelSeekBar.IsProgressChangeDelay()) return; |
| | | |
| | | dimmableLight.SetLevel((int)(levelSeekBar.Progress * MaxLevel / 100.0)); |
| | | }; |
| | | OnProgressButtonMove(e2);
|
| | |
|
| | | //判断是否300ms屏蔽
|
| | | if (levelSeekBar.IsProgressChangeDelay()) return;
|
| | |
|
| | | dimmableLight.SetLevel((int)(levelSeekBar.Progress * MaxLevel / 100.0));
|
| | | };
|
| | |
|
| | | InitProgressBtn(itemView); |
| | | |
| | | InitProgressBtn(itemView); |
| | | |
| | |
| | | itemView.AddChidren(roomName); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// OnProgressButtonMove |
| | | /// </summary> |
| | | private void OnProgressButtonMove(int mProgress) |
| | | { |
| | | ProgressBtn.Y = ProgressBtnY + levelSeekBar.NowProgressY; |
| | | ProgressBtn.Text = mProgress + "%"; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 添加进度按钮 |
| | | /// </summary> |
| | | /// <summary>
|
| | | /// OnProgressButtonMove
|
| | | /// </summary>
|
| | | private void OnProgressButtonMove(int mProgress)
|
| | | {
|
| | | ProgressBtn.Y = ProgressBtnY + levelSeekBar.NowProgressY;
|
| | | ProgressBtn.Text = mProgress + "%";
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 添加进度按钮
|
| | | /// </summary>
|
| | | private void InitProgressBtn(FrameLayout layout) |
| | | { |
| | | ProgressBtnY = levelSeekBar.Y - Application.GetMinReal(154); |
| | | ProgressBtn = new Button() |
| | | { |
| | | Y = ProgressBtnY, |
| | | Width = Application.GetMinReal(135), |
| | | Height = Application.GetMinReal(104), |
| | | UnSelectedImagePath = "Item/ProgressBubbles.png", |
| | | Visible = false, |
| | | Gravity = Gravity.CenterHorizontal |
| | | }; |
| | | layout.AddChidren(ProgressBtn); |
| | | {
|
| | | ProgressBtnY = levelSeekBar.Y - Application.GetMinReal(154);
|
| | | ProgressBtn = new Button()
|
| | | {
|
| | | Y = ProgressBtnY,
|
| | | Width = Application.GetMinReal(135),
|
| | | Height = Application.GetMinReal(104),
|
| | | UnSelectedImagePath = "Item/ProgressBubbles.png",
|
| | | Visible = false,
|
| | | Gravity = Gravity.CenterHorizontal
|
| | | };
|
| | | layout.AddChidren(ProgressBtn);
|
| | | } |
| | | |
| | | #endregion |