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/Device/CommonForm/TopFrameLayout.cs | 35 +++++++++++++++++++----------------
1 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs
index f5d0bda..0baf350 100755
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs
@@ -9,7 +9,7 @@
/// <summary>
/// 杩斿洖閿�
/// </summary>
- public BackButton backButton;
+ public UserCenter.BackViewControl backButton;
/// <summary>
/// 鐘舵�佹爮-楂樺害涓�80
/// </summary>
@@ -65,7 +65,8 @@
{
Y = Application.GetRealHeight(CommonFormResouce.TopStatuFrameLayout_Height),
Height = Application.GetRealHeight(CommonFormResouce.Topview_Height),
- Width = Application.GetRealWidth(CommonPage.AppRealWidth)
+ Width = Application.GetRealWidth(CommonPage.AppRealWidth),
+ BackgroundColor=ZigbeeColor.Current.GXCTopViewBackgroundColor
};
AddChidren(topView);
@@ -73,7 +74,7 @@
{
Y=Height-1,
Height=1,
- BackgroundColor=ZigbeeColor.Current.GXCGrayLineColor3
+ BackgroundColor= UserCenter.UserCenterColor.Current.ButtomLine
};
AddChidren(line);
}
@@ -87,8 +88,11 @@
/// <returns>The back button.</returns>
private void AddBackBtn()
{
- backButton = new BackButton { };
- topView.AddChidren(backButton);
+ backButton = new UserCenter.BackViewControl();
+ topView.AddChidren(backButton);
+ backButton.InitControl();
+ //鍚庣画鍐嶈皟鏁�
+ backButton.Y = backButton.Y - Application.GetRealHeight(4);
}
#endregion
@@ -115,17 +119,16 @@
/// 鏍囬
/// </summary>
private void AddTitle()
- {
- topTitle = new Button
- {
- X = Application.GetRealWidth(164),
- Height = Application.GetRealHeight(CommonFormResouce.TopFrameLayout_Height - CommonFormResouce.TopStatuFrameLayout_Height),
- Width = Application.GetRealWidth(CommonFormResouce.TopTitle_Width),
- TextSize = CommonFormResouce.TopTitle_TextSize,
- TextColor = ZigbeeColor.Current.GXCTitleBlackTitle,
- TextAlignment = TextAlignment.CenterLeft,
- IsBold = true,
- };
+ {
+ topTitle = new Button();
+ topTitle.TextSize = 17;
+ topTitle.X = Application.GetRealWidth(161);
+ topTitle.Height = Application.GetRealHeight(75);
+ topTitle.Width = Application.GetRealWidth(850);
+ topTitle.Gravity = Gravity.CenterVertical;
+ topTitle.TextColor = UserCenter.UserCenterColor.Current.TopLayoutTitleText;
+ topTitle.TextAlignment = TextAlignment.CenterLeft;
+ topTitle.IsBold = true;
topView.AddChidren(topTitle);
}
--
Gitblit v1.8.0