From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期一, 14 十二月 2020 09:59:01 +0800
Subject: [PATCH] 请合并代码,完成晾衣架最终功能。
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
index 62f0a2b..d55657d 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
@@ -34,12 +34,14 @@
/// <param name="bodyFrameLayout">鐖舵帶浠�</param>
/// <param name="title">鏍囬鏂囨湰</param>
/// <param name="Height">钃濇箹UI閲岄潰瀹冪殑楂樺害</param>
+ /// <param name="real">鏄惁璁$畻Height鐨勭湡瀹炲��</param>
/// <returns>淇℃伅瀹瑰櫒鎺т欢</returns>
- public FrameListControl InitControl(FrameLayout bodyFrameLayout, string title, int Height)
+ public FrameListControl InitControl(FrameLayout bodyFrameLayout, string title, int Height, bool real = true)
{
+ if (real == true) { Height = Application.GetRealHeight(Height); }
//鏄庣粏鍒楄〃鐨勬甯冿紝鐧借壊鑳屾櫙
this.detailBackFrame = new FrameLayout();
- detailBackFrame.Height = Application.GetRealHeight(Height);
+ detailBackFrame.Height = Height;
detailBackFrame.BackgroundColor = UserCenterColor.Current.White;
detailBackFrame.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
detailBackFrame.Gravity = Gravity.BottomCenter;
@@ -58,7 +60,7 @@
//鍒楄〃鎺т欢
this.listview = new FrameListControl(12);
listview.Y = btnTile.Bottom + Application.GetRealHeight(17);
- listview.Height = Application.GetRealHeight(Height) - btnTile.Bottom - Application.GetRealHeight(17);
+ listview.Height = Height - btnTile.Bottom - Application.GetRealHeight(17);
detailBackFrame.AddChidren(listview);
return listview;
--
Gitblit v1.8.0