From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期三, 25 十二月 2019 11:21:06 +0800 Subject: [PATCH] 2019.12.25 --- ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs index 82a86d1..0d30915 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs @@ -190,14 +190,14 @@ btnPic.Width = Application.GetRealWidth(844); btnPic.Height = Application.GetRealHeight(420); btnPic.ImagePath = data.IconPath; - btnPic.Radius = 17; + btnPic.Radius = 8; frameContr.AddChidren(btnPic); var btnName = new NormalViewControl(251, 282, true); btnName.X = ControlCommonResourse.XXLeft; - btnName.Gravity = Gravity.CenterVertical; + btnName.Y = Application.GetRealHeight(58); btnName.BackgroundColor = 0xff333333; - btnName.Radius = 17; + btnName.Radius = 8; btnName.Text = data.Name; btnName.TextSize = 15; btnName.TextColor = UserCenterColor.Current.White; @@ -236,6 +236,8 @@ } }; } + //璋冩暣涓�涓嬮珮搴� + listView.AdjustRealHeightByBottomButton(Application.GetRealHeight(185)); }); } @@ -262,13 +264,13 @@ } else { - var frameBack = new FrameLayoutControl(false); + var frameBack = new FrameLayout(); frameBack.X = ControlCommonResourse.XXLeft; frameBack.Y = Application.GetRealHeight(178); frameBack.BackgroundColor = UserCenterColor.Current.White; frameBack.Width = bodyFrameLayout.Width; frameBack.Height = Application.GetRealHeight(1650); - frameBack.RadiusEx = 20; + frameBack.Radius = 20; frameDeviceTable.AddChidren(frameBack); var listView = new VerticalListControl(23); @@ -317,6 +319,8 @@ private void AddDeviceRow(List<CommonDevice> listDevice, VerticalListControl listView) { listView.RemoveAll(); + //杩樺師楂樺害 + listView.RecoverHeight(); foreach (var device in listDevice) { @@ -365,6 +369,8 @@ } }; } + //鍒楄〃鑷繁鏈変釜23鐨刌杞村潗鏍� + listView.AdjustRealHeightByBottomButton(Application.GetRealHeight(23), Application.GetRealHeight(300 - 23)); } #endregion -- Gitblit v1.8.0