From 3272ca5b51e19f7f8a827b0f68400570a547fe60 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 28 四月 2020 15:02:44 +0800
Subject: [PATCH] 2020-04-28-1

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 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..1e42396 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
@@ -45,6 +45,7 @@
         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,6 +102,14 @@
             btnEditor.TextAlignment = TextAlignment.Center;
             btnEditor.TextID = R.MyInternationalizationString.uEditor;
             this.AddRightView(btnEditor);
+            if (hideMenuByClick == true)
+            {
+                btnEditor.ButtonClickEvent += (sender, e) =>
+                {
+                    //鍏抽棴宸︽粦鑿滃崟
+                    this.HideMenu();
+                };
+            }
 
             return btnEditor;
         }

--
Gitblit v1.8.0