| | |
| | | this.AddBindRow();
|
| | | //添加背光灯行
|
| | | this.AddBackLightRow();
|
| | |
|
| | | //借用Y轴坐标
|
| | | var btnTemp = new BottomClickButton();
|
| | | var realHeight = listview.GetChildren(0).Height * listview.ChildrenCount;
|
| | | if (bodyFrameLayout.Height - btnTemp.Yaxis + realHeight > listview.Height)
|
| | | {
|
| | | //促使被挡住的菜单能够向上滑动
|
| | | var frameTemp = new FrameLayout();
|
| | | frameTemp.Height = bodyFrameLayout.Height - btnTemp.Yaxis + Application.GetRealHeight(115);
|
| | | listview.AddChidren(frameTemp);
|
| | | }
|
| | | btnTemp = null;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | var btnIcon = new NormalViewControl(Application.GetMinRealAverage(52), Application.GetMinRealAverage(52), false);
|
| | | btnIcon.Name = "btn" + device.DeviceEpoint;
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | btnIcon.Radius = (uint)Application.GetMinRealAverage(6);
|
| | | btnIcon.Radius = 6;
|
| | | btnIcon.BorderWidth = 2;
|
| | | btnIcon.BorderColor = 0xff979797;
|
| | | frame.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|