| | |
| | | /// <summary>
|
| | | /// 桌布控件
|
| | | /// </summary>
|
| | | private FrameLayout frameTable = null;
|
| | | private FrameLayout m_frameTable = null;
|
| | | /// <summary>
|
| | | /// 桌布控件
|
| | | /// </summary>
|
| | | public FrameLayout frameTable
|
| | | {
|
| | | get
|
| | | {
|
| | | if (m_frameTable == null) { this.InitFrameTable(); }
|
| | | return m_frameTable;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | /// </summary>
|
| | | private void InitFrameTable()
|
| | | {
|
| | | if (this.frameTable != null)
|
| | | if (this.m_frameTable != null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | this.frameTable = new FrameLayout();
|
| | | this.frameTable.Width = this.Width;
|
| | | this.frameTable.Height = this.Height;
|
| | | this.AddChidren(this.frameTable);
|
| | | this.m_frameTable = new FrameLayout();
|
| | | this.m_frameTable.Width = this.Width;
|
| | | this.m_frameTable.Height = this.Height;
|
| | | this.AddChidren(this.m_frameTable);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | //初始化桌布控件
|
| | | this.InitFrameTable();
|
| | |
|
| | | var child = this.frameTable.GetChildren(this.frameTable.ChildrenCount - 1);
|
| | | var child = this.m_frameTable.GetChildren(this.m_frameTable.ChildrenCount - 1);
|
| | | if (child != null)
|
| | | {
|
| | | frame.Y = child.Bottom + rowSpace;
|
| | | }
|
| | | this.frameTable.AddChidren(frame);
|
| | | this.m_frameTable.AddChidren(frame);
|
| | | //调整桌布高度
|
| | | if (this.frameTable.Height < frame.Bottom)
|
| | | if (this.m_frameTable.Height < frame.Bottom)
|
| | | {
|
| | | this.frameTable.Height = frame.Bottom;
|
| | | this.m_frameTable.Height = frame.Bottom;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | /// </summary>
|
| | | public void AdjustTableHeight()
|
| | | {
|
| | | var child = this.frameTable?.GetChildren(this.frameTable.ChildrenCount - 1);
|
| | | var child = this.m_frameTable?.GetChildren(this.m_frameTable.ChildrenCount - 1);
|
| | | if (child != null)
|
| | | {
|
| | | //调整桌布高度
|
| | | if (this.frameTable.Height < child.Bottom)
|
| | | {
|
| | | this.frameTable.Height = child.Bottom;
|
| | | }
|
| | | this.m_frameTable.Height = child.Bottom;
|
| | | //if (this.m_frameTable.Height < child.Bottom)
|
| | | //{
|
| | | // this.m_frameTable.Height = child.Bottom;
|
| | | //}
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | public void AdjustRealHeightByBottomButton(int correctionsValue = 0)
|
| | | {
|
| | | var btnTemp = new BottomClickButton();
|
| | | if (btnTemp.Yaxis >= this.frameTable.Height + correctionsValue)
|
| | | if (btnTemp.Yaxis >= this.m_frameTable.Height + correctionsValue)
|
| | | {
|
| | | //没有超过
|
| | | return;
|