HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-11-04 c7698e163e43cea9e7f8ee45f8e3f91c9265cca4
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
@@ -62,5 +62,49 @@
        }
        #endregion
        #region ■ 添加删除控件_______________________
        /// <summary>
        /// 添加删除控件
        /// </summary>
        /// <returns></returns>
        public NormalViewControl AddDeleteControl()
        {
            //删除
            var btnDelete = new NormalViewControl(Application.GetRealWidth(184), this.Height, false);
            btnDelete.BackgroundColor = 0xfff75858;
            btnDelete.TextSize = 12;
            btnDelete.TextColor = UserCenterColor.Current.White;
            btnDelete.TextAlignment = TextAlignment.Center;
            btnDelete.TextID = R.MyInternationalizationString.uDelete;
            this.AddRightView(btnDelete);
            return btnDelete;
        }
        #endregion
        #region ■ 添加编辑控件_______________________
        /// <summary>
        /// 添加编辑控件
        /// </summary>
        /// <returns></returns>
        public NormalViewControl AddEditorControl()
        {
            var btnEditor = new NormalViewControl(Application.GetRealWidth(184), this.Height, false);
            btnEditor.BackgroundColor = 0xff4a4a4a;
            btnEditor.TextSize = 12;
            btnEditor.TextColor = UserCenterColor.Current.White;
            btnEditor.TextAlignment = TextAlignment.Center;
            btnEditor.TextID = R.MyInternationalizationString.uEditor;
            this.AddRightView(btnEditor);
            return btnEditor;
        }
        #endregion
    }
}