| | |
| | | Height = Application.GetRealHeight(80), |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize=14 |
| | | }; |
| | | AddChidren(NameBtn); |
| | | |
| | |
| | | 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} %", |
| | | TextColor = ZigbeeColor.Current.GXCTextGrayColor |
| | | Text = $"{(int)(SeekBar.Progress * 1.0 / MaxLevel * 100)} %", |
| | | TextColor = ZigbeeColor.Current.GXCTextGrayColor, |
| | | TextSize=12 |
| | | }; |
| | | AddChidren(SeekBarTitle); |
| | | |
| | | line = new Button() |
| | | { |
| | | X = Application.GetRealWidth(81), |
| | | Y = this.Height - 2, |
| | | Y = this.Height - 1, |
| | | Width = Application.GetRealWidth(919), |
| | | Height = 2, |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor, |
| | | }; |
| | | AddChidren(line); |
| | |
| | | public void SetStatu(bool statu) |
| | | { |
| | | SelectBtn.Visible = statu; |
| | | if(statu) |
| | | { |
| | | SetProgress(100); |
| | | } |
| | | else |
| | | { |
| | | SetProgress(0); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |