| | |
| | | /// <summary>
|
| | | /// 桌布控件
|
| | | /// </summary>
|
| | | private FrameLayout m_frameTable = null;
|
| | | private NormalFrameLayout m_frameTable = null;
|
| | | /// <summary>
|
| | | /// 桌布控件
|
| | | /// </summary>
|
| | | public FrameLayout frameTable
|
| | | public NormalFrameLayout frameTable
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | this.m_frameTable = new FrameLayout();
|
| | | this.m_frameTable = new NormalFrameLayout();
|
| | | this.m_frameTable.Width = this.Width;
|
| | | this.m_frameTable.Height = this.Height;
|
| | | base.AddChidren(this.m_frameTable);
|
| | |
| | | //初始化桌布控件
|
| | | this.InitFrameTable();
|
| | |
|
| | | int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
|
| | | int value = this.GetLocationMostLastViewBottom(this.frameTable);
|
| | | if (value != -1)
|
| | | {
|
| | | view.Y = value + rowSpace;
|
| | | }
|
| | | this.m_frameTable.AddChidren(view);
|
| | | this.frameTable.AddChidren(view);
|
| | | //调整桌布高度
|
| | | if (this.m_frameTable.Height < view.Bottom)
|
| | | if (this.frameTable.Height < view.Bottom)
|
| | | {
|
| | | this.m_frameTable.Height = view.Bottom;
|
| | | this.frameTable.Height = view.Bottom;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | this.InitFrameTable();
|
| | |
|
| | | //获取坐标底部最下面的那个控件的底部坐标
|
| | | int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
|
| | | int value = this.GetLocationMostLastViewBottom(this.frameTable);
|
| | | if (value != -1)
|
| | | {
|
| | | view.Y = value;
|
| | | }
|
| | | this.m_frameTable.AddChidren(view);
|
| | | this.frameTable.AddChidren(view);
|
| | | if (rowSpace > 0)
|
| | | {
|
| | | view.Height += rowSpace;
|
| | | }
|
| | | //调整桌布高度
|
| | | if (this.m_frameTable.Height < view.Bottom)
|
| | | if (this.frameTable.Height < view.Bottom)
|
| | | {
|
| | | this.m_frameTable.Height = view.Bottom;
|
| | | this.frameTable.Height = view.Bottom;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | //获取坐标底部最下面的那个控件的底部坐标
|
| | | int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
|
| | | int value = this.GetLocationMostLastViewBottom(this.frameTable);
|
| | | if (value != -1)
|
| | | {
|
| | | //调整桌布高度
|
| | | this.m_frameTable.Height = value + buttomSpace;
|
| | | this.frameTable.Height = value + buttomSpace;
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | this.AdjustTableHeight();
|
| | |
|
| | | var btnTemp = new BottomClickButton();
|
| | | if (btnTemp.Yaxis >= this.m_frameTable.Height + correctionsValue)
|
| | | if (btnTemp.Yaxis >= this.frameTable.Height + correctionsValue)
|
| | | {
|
| | | //没有超过
|
| | | return;
|