xm
2020-04-16 6fa9d69da922c8049f5acfcbb9ce9fd26811024c
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;
        }