From 00ab3ddb140ba8bb88b5cf572b004a85e1da85e9 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 02 一月 2020 19:51:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into DEV_GXC --- ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs index b1dce70..0d6a763 100644 --- 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); @@ -124,17 +125,18 @@ Width = Application.GetRealWidth(200), Gravity = Gravity.CenterHorizontal, Text = $"{(int)(SeekBar.Progress * 1.0 / MaxLevel * 100)} %", - TextColor = ZigbeeColor.Current.GXCTextGrayColor + 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, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor, + Height = 1, + BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, }; 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