From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001
From: lss <316519258@qq.com>
Date: 星期五, 12 六月 2020 09:22:04 +0800
Subject: [PATCH] 2020.06.12

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
index 380731e..0998463 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
@@ -6,7 +6,7 @@
     /// <summary>
     /// 鍋氭垚涓�涓偣鍑昏兘澶熸樉绀洪�変腑鐘舵�佽儗鏅壊鐨凴owLayout(鎷ユ湁妗屽竷)
     /// </summary>
-    public class RowLayoutControl : RowLayout
+    public class RowLayoutControl : RowLayoutBase
     {
         #region 鈻� 鍙橀噺澹版槑___________________________
 
@@ -41,10 +41,11 @@
         /// <summary>
         /// 鍋氭垚涓�涓偣鍑昏兘澶熸樉绀洪�変腑鐘舵�佽儗鏅壊鐨凴owLayout(鎷ユ湁妗屽竷)
         /// </summary>
-        /// <param name="ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param>
+        /// <param name="ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param>
         public RowLayoutControl(int i_ChidrenYaxis = 0)
         {
             this.LineColor = UserCenterColor.Current.Transparent;
+            this.SubViewWidth = Application.GetRealWidth(184);
 
             this.chidrenYaxis = i_ChidrenYaxis;
             this.Height = ControlCommonResourse.ListViewRowHeight;
@@ -90,8 +91,9 @@
         /// <summary>
         /// 娣诲姞缂栬緫鎺т欢
         /// </summary>
+        /// <param name="hideMenuByClick">鐐瑰嚮鏃�,鏄惁闅愯棌宸︽粦鑿滃崟</param>
         /// <returns></returns>
-        public NormalViewControl AddEditorControl()
+        public NormalViewControl AddEditorControl(bool hideMenuByClick = true)
         {
             var btnEditor = new NormalViewControl(Application.GetRealWidth(184), this.Height, false);
             btnEditor.BackgroundColor = 0xff4a4a4a;
@@ -100,11 +102,18 @@
             btnEditor.TextAlignment = TextAlignment.Center;
             btnEditor.TextID = R.MyInternationalizationString.uEditor;
             this.AddRightView(btnEditor);
+            if (hideMenuByClick == true)
+            {
+                btnEditor.ButtonClickEvent += (sender, e) =>
+                {
+                    //鍏抽棴宸︽粦鑿滃崟
+                    this.HideMenu();
+                };
+            }
 
             return btnEditor;
-        }
-
-        #endregion
+        }
 
+        #endregion
     }
 }

--
Gitblit v1.8.0