From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期二, 30 八月 2022 09:37:38 +0800 Subject: [PATCH] 合并了IOS的代码 --- ZigbeeApp/Shared/Phone/Device/CommonForm/SelectTime.cs | 56 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 29 insertions(+), 27 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectTime.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectTime.cs index 5044d9c..3a601d5 100755 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectTime.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectTime.cs @@ -4,7 +4,7 @@ namespace Shared.Phone.Device.CommonForm { - public class SelectTime:FrameLayout + public class SelectTime: UserCenter.FrameLayoutBase { public Action<int> TimeAction; @@ -33,10 +33,10 @@ var backgroundFL = new FrameLayout { Y = Application.GetRealHeight(596), - Height = Application.GetRealHeight(1425), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Radius=(uint)Application.GetRealHeight(20) + Height = Application.GetRealHeight(1325), + BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor }; + backgroundFL.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); dialog.AddChidren(backgroundFL); var topView = new FrameLayout @@ -52,7 +52,7 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = ZigbeeColor.Current.GXCTextGrayColor, TextID=R.MyInternationalizationString.Cancel, - TextSize=16 + TextSize=14 }; topView.AddChidren(cancle); @@ -72,39 +72,44 @@ Width = Application.GetRealWidth(300), TextAlignment = TextAlignment.CenterRight, TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextID = R.MyInternationalizationString.Confrim, - TextSize = 16 + TextID = R.MyInternationalizationString.Complete, + TextSize = 14 }; topView.AddChidren(confrim); + + var Line = new FrameLayout() + { + Y = topView.Height - 1, + Height = 1, + BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 + }; + topView.AddChidren(Line); var timeLayout = new VerticalScrolViewLayout { Y = Application.GetRealHeight(207), - Height = Application.GetRealHeight(703+127*2+12*2) + Height = Application.GetRealHeight(703 + 127 * 2 + 12+12), + ScrollEnabled = false, + VerticalScrollBarEnabled = false, }; backgroundFL.AddChidren(timeLayout); TempSelectBtn = new Button(); TempTimeBtn = new Button(); - var unKe = new FrameLayout - { - Y = timeLayout.Bottom, - Height = Application.GetRealHeight(161), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - backgroundFL.AddChidren(unKe); var notOpen = new Button { X = Application.GetRealWidth(80), + Y=Application.GetRealHeight(1200), + Width=Application.GetRealWidth(800), + Height=Application.GetRealHeight(80), TextColor = ZigbeeColor.Current.GXCTextGrayColor4, TextID = R.MyInternationalizationString.NotOpen, TextAlignment = TextAlignment.CenterLeft, - Gravity = Gravity.CenterVertical, - TextSize=16 + TextSize=14 }; - unKe.AddChidren(notOpen); + backgroundFL.AddChidren(notOpen); cancle.MouseUpEventHandler += Close; confrim.MouseUpEventHandler += Confrim_MouseEvent; @@ -123,7 +128,6 @@ { AddTime(timeLayout, t); } - } /// <summary> @@ -154,15 +158,16 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = ZigbeeColor.Current.GXCTextGrayColor4, SelectedTextColor = ZigbeeColor.Current.GXCTextBlackColor, - IsSelected=false + IsSelected=false, + TextSize=14 }; trow.AddChidren(timeBtn); var selectBtn = new Button { X = Application.GetRealWidth(942), - Width = Application.GetMinRealAverage(60), - Height=Application.GetMinRealAverage(60), + Width = this.GetPictrueRealSize(60), + Height=this.GetPictrueRealSize(60), Gravity=Gravity.CenterVertical, UnSelectedImagePath="Item/ItemSelected.png", Visible=false @@ -171,13 +176,13 @@ var Line = new FrameLayout() { - Y = trow.Height - 1, + Y = row.Height - 1, Width = Application.GetRealWidth(919), Height = 1, Gravity=Gravity.CenterHorizontal, BackgroundColor = Common.ZigbeeColor.Current.GXCGrayLineColor2 }; - trow.AddChidren(Line); + row.AddChidren(Line); EventHandler<MouseEventArgs> eventHandler = (sender, e) => @@ -208,9 +213,6 @@ } } - - - /// <summary> /// Close -- Gitblit v1.8.0