| | |
| | | namespace Shared.Phone.UserCenter
|
| | | {
|
| | | /// <summary>
|
| | | /// 做成一个列表型的FrameLayout(它与VerticalListControl同一性质,它会改变高度)
|
| | | /// 做成一个列表型的FrameLayout(它与VerticalListControl同一性质,但是它是FrameLayout,它会改变高度)
|
| | | /// </summary>
|
| | | public class FrameListControl : FrameLayout
|
| | | public class FrameListControl : FrameLayoutBase
|
| | | {
|
| | | /// <summary>
|
| | | /// 行之间的间距
|
| | |
| | | public int rowSpace = 0;
|
| | |
|
| | | /// <summary>
|
| | | /// 做成一个列表型的FrameLayout(它与VerticalListControl同一性质,它会改变高度)
|
| | | /// 做成一个列表型的FrameLayout(它与VerticalListControl同一性质,但是它是FrameLayout,它会改变高度)
|
| | | /// </summary>
|
| | | /// <param name="i_rowSpace">行之间的间距(这个值是与行控件绑定一起使用的)</param>
|
| | | public FrameListControl(int i_rowSpace = 12)
|
| | |
| | | base.AddChidren(view);
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 调整真实高度
|
| | | /// </summary>
|
| | | /// <param name="bottomSpace">底部高度(非真实值)</param>
|
| | | public void AdjustRealHeight(int bottomSpace = 0)
|
| | | {
|
| | | int bottomHeight = -1;
|
| | |
|
| | | for (int i = 0; i < this.ChildrenCount; i++)
|
| | | {
|
| | | var child = this.GetChildren(i);
|
| | | if (child.Bottom > bottomHeight)
|
| | | {
|
| | | bottomHeight = child.Bottom;
|
| | | }
|
| | | }
|
| | | if (bottomHeight != -1)
|
| | | {
|
| | | this.Height = bottomHeight + bottomSpace;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|