黄学彪
2020-04-13 3793a9a38ac6c4c4111c2bba3a35a71c30601e82
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
@@ -91,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;
@@ -101,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;
        }