From cc0d80c7d86c6d0167269b3408c4b30c24ce84e9 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 23 三月 2020 16:55:37 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs | 29 ++++++++++++----------------- 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs index 6535251..cbae180 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs @@ -19,24 +19,18 @@ /// <returns>淇℃伅瀹瑰櫒鎺т欢</returns> public VerticalListControl InitControl(FrameLayout bodyFrameLayout, string title, int Y, int Height) { - //寮у害鐨勫渾鐨勪竴鍗婄殑楂樺害(鍥哄畾) - int halfRoundHeigth = Application.GetRealHeight(116) / 2; - //寮у害鐨勫渾 - var btnRound = new NormalViewControl(bodyFrameLayout.Width, halfRoundHeigth * 2, false); - btnRound.Y = Application.GetRealHeight(Y); - btnRound.BackgroundColor = UserCenterColor.Current.White; - btnRound.Radius = (uint)halfRoundHeigth; - bodyFrameLayout.AddChidren(btnRound); - //鏄庣粏鍒楄〃鐨勬甯冿紝鐧借壊鑳屾櫙(瑕嗙洊寮у害鐨勫渾鐨勫崐杈�) + //鏄庣粏鍒楄〃鐨勬甯冿紝鐧借壊鑳屾櫙 var detailBackFrame = new FrameLayout(); - detailBackFrame.Y = btnRound.Bottom - btnRound.Height / 2; - detailBackFrame.Height = Application.GetRealHeight(Height);//楂樺害灏辨槸瑕佸畠瓒呰繃 + detailBackFrame.Y = Application.GetRealHeight(Y); + detailBackFrame.Height = Application.GetRealHeight(Height + 100);//楂樺害灏辨槸瑕佸畠瓒呰繃 detailBackFrame.BackgroundColor = UserCenterColor.Current.White; + detailBackFrame.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); bodyFrameLayout.AddChidren(detailBackFrame); //淇℃伅缂栬緫 var btnTile = new NormalViewControl(800, 60, true); btnTile.X = ControlCommonResourse.XXLeft; + btnTile.Y = Application.GetRealHeight(81); btnTile.TextSize = 15; btnTile.TextColor = UserCenterColor.Current.TextColor2; btnTile.Text = title; @@ -44,7 +38,7 @@ var listview = new VerticalListControl(12); listview.Y = btnTile.Bottom + Application.GetRealHeight(17); - listview.Height = Application.GetRealHeight(Height) - halfRoundHeigth - btnTile.Bottom - Application.GetRealHeight(17); + listview.Height = Application.GetRealHeight(Height) - btnTile.Bottom - Application.GetRealHeight(17); detailBackFrame.AddChidren(listview); return listview; @@ -59,10 +53,10 @@ { var btnFinish = new BottomClickButton(); //鍊熺敤Y杞村潗鏍�(璁╄繖涓尯鍩熶笉鑳界偣鍑昏彍鍗�) - var frameBack = new FrameLayout(); - frameBack.Y = btnFinish.Yaxis; - frameBack.Height = bodyFrameLayout.Height - btnFinish.Yaxis; - bodyFrameLayout.AddChidren(frameBack); + //var frameBack = new FrameLayout(); + //frameBack.Y = btnFinish.Yaxis; + //frameBack.Height = bodyFrameLayout.Height - btnFinish.Yaxis; + //bodyFrameLayout.AddChidren(frameBack); if (listview.ChildrenCount > 0) { @@ -71,7 +65,8 @@ { //淇冧娇琚尅浣忕殑鑿滃崟鑳藉鍚戜笂婊戝姩 var frameTemp = new FrameLayout(); - frameTemp.Height = frameBack.Height + Application.GetRealHeight(115); + //frameTemp.Height = frameBack.Height + Application.GetRealHeight(115); + frameTemp.Height = bodyFrameLayout.Height - btnFinish.Yaxis + Application.GetRealHeight(115); listview.AddChidren(frameTemp); } } -- Gitblit v1.8.0