From ff3cfcf62632bf43e51a6b6098c203bf0f5cddbc Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期二, 24 十二月 2019 19:53:29 +0800 Subject: [PATCH] 2019.12.24 --- ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs old mode 100755 new mode 100644 index 8448127..f5d0bda --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs @@ -33,7 +33,7 @@ public TopFrameLayout() { BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor; - Width = Application.GetRealWidth(CommonPage.AppRealWidth); + Width = Application.GetRealWidth(CommonFormResouce.AppRealWidth); Height = Application.GetRealHeight(CommonFormResouce.TopFrameLayout_Height); } @@ -68,6 +68,14 @@ Width = Application.GetRealWidth(CommonPage.AppRealWidth) }; AddChidren(topView); + + var line = new Button + { + Y=Height-1, + Height=1, + BackgroundColor=ZigbeeColor.Current.GXCGrayLineColor3 + }; + AddChidren(line); } #endregion @@ -110,12 +118,15 @@ { 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, - Gravity = Gravity.CenterHorizontal, + TextAlignment = TextAlignment.CenterLeft, + IsBold = true, }; + topView.AddChidren(topTitle); } /// <summary> -- Gitblit v1.8.0