| | |
| | | ProgressColor = ZigbeeColor.Current.GXCProgressColor, |
| | | ThumbColor = ZigbeeColor.Current.GXCBackgroundColor, |
| | | Max = MaxLevel, |
| | | Progress = max |
| | | Progress = MaxLevel |
| | | }; |
| | | AddChidren(SeekBar); |
| | | |
| | |
| | | Height = Application.GetRealHeight(50), |
| | | Width = Application.GetRealWidth(200), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Text = $"{SeekBar.Progress} %", |
| | | Text = $"{(int)(SeekBar.Progress * 1.0 / MaxLevel * 100)} %", |
| | | TextColor = ZigbeeColor.Current.GXCTextGrayColor |
| | | }; |
| | | AddChidren(SeekBarTitle); |
| | |
| | | public void SetStatu(bool statu) |
| | | { |
| | | SelectBtn.Visible = statu; |
| | | if(statu) |
| | | { |
| | | SetProgress(100); |
| | | } |
| | | else |
| | | { |
| | | SetProgress(0); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |