From f1c3921b08bb22ac6f5db22d620e01d7e8e5c49f Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期一, 30 十二月 2019 13:32:33 +0800 Subject: [PATCH] 2019-12-30-1 --- ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs index 8448127..4227c91 100755 --- 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,11 +118,12 @@ { 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 }; topView.AddChidren(topTitle); } -- Gitblit v1.8.0