From c16f0f8fd1e5374164852a441751abb96a84d300 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 01 七月 2020 12:06:57 +0800
Subject: [PATCH] 2020-7-1-1
---
ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs | 49 +++++++++++++++++++++++++++++++------------------
1 files changed, 31 insertions(+), 18 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs
index b9d0c89..d0b4550 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs
@@ -12,7 +12,8 @@
}
#region 鈼� 鍙橀噺鐢虫槑__________________________
public FrameLayout topFrameLayout = new FrameLayout { Height = Application.GetRealHeight(184), BackgroundColor = ZigbeeColor.Current.XMTopFrameLayout };
- public FrameLayout midFrameLayout = new FrameLayout { Height = Application.GetRealHeight(1921 - 184), BackgroundColor = ZigbeeColor.Current.XMMidFrameLayout };
+ public FrameLayout midFrameLayout = new FrameLayout { Height = Application.GetRealHeight(1925 - 184), BackgroundColor = ZigbeeColor.Current.XMMidFrameLayout };
+
public FrameLayout bottomRadiusFrameLayout = new FrameLayout()
{
Height = Application.GetRealHeight(100),
@@ -20,26 +21,47 @@
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
{
- X = Application.GetRealWidth(58),
- Height = Application.GetRealHeight(58),
- Width = Application.GetRealWidth(58),
+ 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),
@@ -49,27 +71,18 @@
#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);
- var title = new Button()
- {
- TextAlignment = TextAlignment.CenterLeft,
- Text = titleText,
- TextColor = Shared.Common.ZigbeeColor.Current.XMTopTitleText,
- X = Application.GetRealWidth(161),
- Width = Application.GetRealWidth(1080 - 161),
- Height = Application.GetRealWidth(69),
- TextSize = 17,
- };
- titleFrameLayout.AddChidren(title);
- titleFrameLayout.AddChidren(btnBackFrameLayout);
btnBackFrameLayout.AddChidren(btnBack);
+ titleFrameLayout.AddChidren(btnTitle);
+ btnTitle.Text = titleText;
}
/// <summary>
/// 闂ㄩ攣涓儴甯冨眬
--
Gitblit v1.8.0