From c1de48884fa145a16a0f8bcee93274dcfaa0ff82 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 07 五月 2020 10:40:28 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-2020xm --- ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 113 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs new file mode 100755 index 0000000..d0b4550 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs @@ -0,0 +1,113 @@ +锘縰sing System; +using Shared.Common; +using ZigBee.Device; + +namespace Shared.Phone.UserCenter.DeviceBind +{ + public class BindCommonLayout : FrameLayout + { + public BindCommonLayout() + { + + } + #region 鈼� 鍙橀噺鐢虫槑__________________________ + public FrameLayout topFrameLayout = new FrameLayout { Height = Application.GetRealHeight(184), BackgroundColor = ZigbeeColor.Current.XMTopFrameLayout }; + public FrameLayout midFrameLayout = new FrameLayout { Height = Application.GetRealHeight(1925 - 184), BackgroundColor = ZigbeeColor.Current.XMMidFrameLayout }; + + public FrameLayout bottomRadiusFrameLayout = new FrameLayout() + { + Height = Application.GetRealHeight(100), + Y = Application.GetRealHeight(930), + Radius = 17, + BackgroundColor = ZigbeeColor.Current.XMWhite, + }; + + public FrameLayout titleFrameLayout = new FrameLayout + { + Y = Application.GetRealHeight(92), + X = Application.GetRealWidth(161), + Width = Application.GetRealWidth(1080 - 161),//919 + Height = Application.GetRealHeight(69), + }; + public Button btnTitle = new Button + { + TextAlignment = TextAlignment.CenterLeft, + TextColor = Shared.Common.ZigbeeColor.Current.XMTopTitleText, + Width = Application.GetRealWidth(1080 - 161),//919 + Height = Application.GetRealWidth(69), + TextSize = 17, + IsBold = true, + //X = Application.GetRealWidth(161 - 116), + }; + /// <summary> + /// 鏍囬杩斿洖甯冨眬 + /// </summary> + public FrameLayout btnBackFrameLayout = new FrameLayout + { + Width = Application.GetRealWidth(58 * 2),//116 + }; + + /// <summary> + /// 鏍囬杩斿洖鎸夐敭 + /// </summary> + public Button btnBack = new Button + { + Height = Application.GetRealHeight(51), + Width = Application.GetRealWidth(30), + X = Application.GetRealWidth(58), + Y = Application.GetRealHeight(98), + UnSelectedImagePath = "DoorLock/Left.png", + }; + + /// <summary> + /// 鏍囬涓嬬嚎 + /// </summary> + public Button btnTitleLine = new Button + { + Y = Application.GetRealHeight(181), + Height = 1, + BackgroundColor = Shared.Common.ZigbeeColor.Current.XMTitleLine, + }; + #endregion + + /// <summary> + /// 椤堕儴甯冨眬 + /// </summary> + /// <param name="frameLayout"></param> + public void TopFrameLayout(FrameLayout frameLayout, string titleText) + { + this.AddChidren(topFrameLayout); + topFrameLayout.AddChidren(btnBackFrameLayout); + topFrameLayout.AddChidren(titleFrameLayout); + topFrameLayout.AddChidren(btnTitleLine); + btnBackFrameLayout.AddChidren(btnBack); + titleFrameLayout.AddChidren(btnTitle); + btnTitle.Text = titleText; + } + /// <summary> + /// 闂ㄩ攣涓儴甯冨眬 + /// </summary> + /// <param name="frameLayout"></param> + public void MidFrameLayout(FrameLayout frameLayout) + { + //midFrameLayout.BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCBackgroundColor; + midFrameLayout.Y = topFrameLayout.Bottom; + this.AddChidren(midFrameLayout); + } + + /// <summary> + /// 闂ㄩ攣搴曢儴甯冨眬 + /// </summary> + /// <param name="frameLayout"></param> + public void BottomFrameLayout(FrameLayout frameLayout) + { + var bottomFrameLayout1 = new FrameLayout() + { + Height = Application.GetRealHeight(806 - 50), + Y = Application.GetRealHeight(930 + 48), + BackgroundColor = ZigbeeColor.Current.XMWhite, + }; + this.midFrameLayout.AddChidren(bottomFrameLayout1); + } + } +} \ No newline at end of file -- Gitblit v1.8.0