| | |
| | | /// <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;
|
| | |
| | |
|
| | | 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;
|