From f759dc1e6f49c53733eafda82207c85af18f9931 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期四, 28 五月 2020 15:46:54 +0800 Subject: [PATCH] 2020-05-28-1 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs | 66 +++++++++++++++++++++++++++++++- 1 files changed, 63 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs index 8554310..3ad73c6 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs @@ -43,6 +43,13 @@ { rowSpace = Application.GetRealHeight(i_rowSpace); this.VerticalScrollBarEnabled = false; +#if iOS + //鑷姩鍋忕Щ鍙栨秷 + if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) + { + (this.uiView as UIKit.UIScrollView).ContentInsetAdjustmentBehavior = UIKit.UIScrollViewContentInsetAdjustmentBehavior.Never; + } +#endif } /// <summary> @@ -65,7 +72,7 @@ #region 鈻� 娣诲姞瀛愭帶浠禵________________________ /// <summary> - /// 娣诲姞Frame瀛愭帶浠� + /// 娣诲姞Frame瀛愭帶浠�(姝ゆ柟娉曟槸鏀瑰彉Y杞�) /// </summary> /// <param name="view"></param> public void AddChidrenFrame(FrameLayout frame) @@ -83,6 +90,58 @@ if (this.m_frameTable.Height < frame.Bottom) { this.m_frameTable.Height = frame.Bottom; + } + } + + /// <summary> + /// 娣诲姞Frame瀛愭帶浠�(姝ゆ柟娉曟槸鏀瑰彉楂樺害) + /// </summary> + /// <param name="view"></param> + public void AddChidrenFrame2(FrameLayout frame) + { + //鍒濆鍖栨甯冩帶浠� + this.InitFrameTable(); + + var child = this.m_frameTable.GetChildren(this.m_frameTable.ChildrenCount - 1); + if (child != null) + { + frame.Y = child.Bottom; + } + this.m_frameTable.AddChidren(frame); + if (rowSpace > 0) + { + frame.Height += rowSpace; + } + //璋冩暣妗屽竷楂樺害 + if (this.m_frameTable.Height < frame.Bottom) + { + this.m_frameTable.Height = frame.Bottom; + } + } + + /// <summary> + /// 娣诲姞Frame瀛愭帶浠�(姝ゆ柟娉曟槸鏀瑰彉楂樺害) + /// </summary> + /// <param name="row"></param> + public void AddChidrenRow(RowLayout row) + { + //鍒濆鍖栨甯冩帶浠� + this.InitFrameTable(); + + var child = this.m_frameTable.GetChildren(this.m_frameTable.ChildrenCount - 1); + if (child != null) + { + row.Y = child.Bottom; + } + this.m_frameTable.AddChidren(row); + if (rowSpace > 0) + { + row.Height += rowSpace; + } + //璋冩暣妗屽竷楂樺害 + if (this.m_frameTable.Height < row.Bottom) + { + this.m_frameTable.Height = row.Bottom; } } @@ -111,13 +170,14 @@ /// <summary> /// 璋冩暣妗屽竷楂樺害 /// </summary> - public void AdjustTableHeight() + /// <param name="buttomSpace">搴曢儴绌虹櫧闂磋窛(鐪熷疄鍊�)</param> + public void AdjustTableHeight(int buttomSpace = 0) { var child = this.m_frameTable?.GetChildren(this.m_frameTable.ChildrenCount - 1); if (child != null) { //璋冩暣妗屽竷楂樺害 - this.m_frameTable.Height = child.Bottom; + this.m_frameTable.Height = child.Bottom + buttomSpace; //if (this.m_frameTable.Height < child.Bottom) //{ // this.m_frameTable.Height = child.Bottom; -- Gitblit v1.8.0