From 6fa9d69da922c8049f5acfcbb9ce9fd26811024c Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 16 四月 2020 17:10:57 +0800 Subject: [PATCH] 请合并代码 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 100 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..49fbae3 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs @@ -0,0 +1,100 @@ +锘縰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), + Height = Application.GetRealHeight(69), + }; + public Button btnTitle = new Button + { + TextAlignment = TextAlignment.CenterLeft, + TextColor = Shared.Common.ZigbeeColor.Current.XMTopTitleText, + X = Application.GetRealWidth(161), + Width = Application.GetRealWidth(1080 - 161), + Height = Application.GetRealWidth(69), + IsBold = true, + TextSize = 17, + }; + public FrameLayout btnBackFrameLayout = new FrameLayout + { + X = Application.GetRealWidth(58), + Height = Application.GetRealHeight(58), + Width = Application.GetRealWidth(58), + }; + + public Button btnBack = new Button + { + Height = Application.GetMinReal(51), + Width = Application.GetMinReal(30), + UnSelectedImagePath = "DoorLock/Left.png", + }; + + 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(titleFrameLayout); + topFrameLayout.AddChidren(btnTitleLine); + titleFrameLayout.AddChidren(btnTitle); + btnTitle.Text = titleText; + titleFrameLayout.AddChidren(btnBackFrameLayout); + btnBackFrameLayout.AddChidren(btnBack); + } + /// <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