From dce6c3481a37216292724013ff9d2b75ceb82f86 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 10 六月 2020 15:47:28 +0800
Subject: [PATCH] 添加小度的代码

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs |   57 +++++++++++++++------------------------------------------
 1 files changed, 15 insertions(+), 42 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs
index 2ed4d25..f67e435 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameRefreshControl.cs
@@ -69,7 +69,7 @@
             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
@@ -77,10 +77,10 @@
         #region 鈻� 娣诲姞瀛愭帶浠禵________________________
 
         /// <summary>
-        /// 娣诲姞Frame瀛愭帶浠�(姝ゆ柟娉曟槸鏀瑰彉Y杞�)
+        /// 娣诲姞瀛愭帶浠�(娉ㄦ剰,瀹冩槸寰�涓嬪姞鎺т欢,姝ゆ柟娉曟槸鍙敼鍙榊杞�)
         /// </summary>
         /// <param name="view"></param>
-        public void AddChidrenFrame(FrameLayout frame)
+        public override void AddChidren(View view)
         {
             //鍒濆鍖栨甯冩帶浠�
             this.InitFrameTable();
@@ -88,21 +88,21 @@
             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;
             }
         }
 
         /// <summary>
-        /// 娣诲姞Frame瀛愭帶浠�(姝ゆ柟娉曟槸鏀瑰彉楂樺害)
+        /// 娣诲姞瀛愭帶浠�(娉ㄦ剰,瀹冩槸寰�涓嬪姞鎺т欢,姝ゆ柟娉曟槸鏀瑰彉楂樺害)
         /// </summary>
         /// <param name="view"></param>
-        public void AddChidrenFrame2(FrameLayout frame)
+        public void AddChidren2(View view)
         {
             //鍒濆鍖栨甯冩帶浠�
             this.InitFrameTable();
@@ -111,44 +111,17 @@
             int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
             if (value != -1)
             {
-                frame.Y = value;
+                view.Y = value;
             }
-            this.m_frameTable.AddChidren(frame);
+            this.m_frameTable.AddChidren(view);
             if (rowSpace > 0)
             {
-                frame.Height += rowSpace;
+                view.Height += rowSpace;
             }
             //璋冩暣妗屽竷楂樺害
-            if (this.m_frameTable.Height < frame.Bottom)
+            if (this.m_frameTable.Height < view.Bottom)
             {
-                this.m_frameTable.Height = frame.Bottom;
-            }
-        }
-
-        /// <summary>
-        /// 娣诲姞Frame瀛愭帶浠�(姝ゆ柟娉曟槸鏀瑰彉楂樺害)
-        /// </summary>
-        /// <param name="row"></param>
-        public void AddChidrenRow(RowLayout row)
-        {
-            //鍒濆鍖栨甯冩帶浠�
-            this.InitFrameTable();
-
-            //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣
-            int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
-            if (value != -1)
-            {
-                row.Y = value;
-            }
-            this.m_frameTable.AddChidren(row);
-            if (rowSpace > 0)
-            {
-                row.Height += rowSpace;
-            }
-            //璋冩暣妗屽竷楂樺害
-            if (this.m_frameTable.Height < row.Bottom)
-            {
-                this.m_frameTable.Height = row.Bottom;
+                this.m_frameTable.Height = view.Bottom;
             }
         }
 
@@ -219,7 +192,7 @@
 
             this.frameBackTemp = new FrameLayout();
             frameBackTemp.Height = ControlCommonResourse.BodyFrameHeight - btnTemp.Yaxis + Application.GetRealHeight(23);
-            this.AddChidrenFrame(frameBackTemp);
+            this.AddChidren(frameBackTemp);
 
             this.rowSpace = oldRowSpace;
         }

--
Gitblit v1.8.0