From 18a7f9f40e5fab3bee5d4ac3d8fd0273dea052d6 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期日, 26 四月 2020 12:05:28 +0800
Subject: [PATCH] 先上传一个非最新的版本
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
index 8ac4d34..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;
@@ -62,5 +63,58 @@
}
#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>
+ /// <param name="hideMenuByClick">鐐瑰嚮鏃�,鏄惁闅愯棌宸︽粦鑿滃崟</param>
+ /// <returns></returns>
+ public NormalViewControl AddEditorControl(bool hideMenuByClick = true)
+ {
+ 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);
+ if (hideMenuByClick == true)
+ {
+ btnEditor.ButtonClickEvent += (sender, e) =>
+ {
+ //鍏抽棴宸︽粦鑿滃崟
+ this.HideMenu();
+ };
+ }
+
+ return btnEditor;
+ }
+
+ #endregion
+
}
}
--
Gitblit v1.8.0