| | |
| | | this.m_frameTable = new FrameLayout();
|
| | | this.m_frameTable.Width = this.Width;
|
| | | this.m_frameTable.Height = this.Height;
|
| | | this.AddChidren(this.m_frameTable);
|
| | | base.AddChidren(this.m_frameTable);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | #region ■ 添加子控件_________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 添加Frame子控件
|
| | | /// 添加Frame子控件(注意,它是往下加控件,只会改变坐标,桌布大小会增加)
|
| | | /// </summary>
|
| | | /// <param name="view"></param>
|
| | | public void AddChidrenFrame(FrameLayout frame)
|
| | | public override void AddChidren(View view)
|
| | | {
|
| | | //初始化桌布控件
|
| | | this.InitFrameTable();
|
| | |
| | | int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
|
| | | if (value != -1)
|
| | | {
|
| | | frame.Y = value + rowSpace;
|
| | | view.Y = value + rowSpace;
|
| | | }
|
| | | this.m_frameTable.AddChidren(frame);
|
| | | this.m_frameTable.AddChidren(view);
|
| | | //调整桌布高度
|
| | | if (this.m_frameTable.Height < frame.Bottom)
|
| | | if (this.m_frameTable.Height < view.Bottom)
|
| | | {
|
| | | this.m_frameTable.Height = frame.Bottom;
|
| | | this.m_frameTable.Height = view.Bottom;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | this.frameBackTemp = new FrameLayout();
|
| | | frameBackTemp.Height = ControlCommonResourse.BodyFrameHeight - btnTemp.Yaxis + Application.GetRealHeight(23);
|
| | | this.AddChidrenFrame(frameBackTemp);
|
| | | this.AddChidren(frameBackTemp);
|
| | |
|
| | | this.rowSpace = oldRowSpace;
|
| | | }
|