From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期三, 25 十二月 2019 11:21:06 +0800 Subject: [PATCH] 2019.12.25 --- ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs old mode 100755 new mode 100644 index 4f9dd8f..727b09a --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs @@ -84,6 +84,7 @@ Height = Application.GetRealHeight(80), TextColor = ZigbeeColor.Current.GXCTextBlackColor, TextAlignment = TextAlignment.CenterLeft, + TextSize=14 }; AddChidren(NameBtn); @@ -113,7 +114,7 @@ ProgressColor = ZigbeeColor.Current.GXCProgressColor, ThumbColor = ZigbeeColor.Current.GXCBackgroundColor, Max = MaxLevel, - Progress = max + Progress = MaxLevel }; AddChidren(SeekBar); @@ -123,17 +124,18 @@ 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); @@ -162,6 +164,14 @@ public void SetStatu(bool statu) { SelectBtn.Visible = statu; + if(statu) + { + SetProgress(100); + } + else + { + SetProgress(0); + } } /// <summary> -- Gitblit v1.8.0