| | |
| | | /// <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;
|
| | |
| | | btnEditor.TextAlignment = TextAlignment.Center;
|
| | | btnEditor.TextID = R.MyInternationalizationString.uEditor;
|
| | | this.AddRightView(btnEditor);
|
| | | if (hideMenuByClick == true)
|
| | | {
|
| | | btnEditor.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //关闭左滑菜单
|
| | | this.HideMenu();
|
| | | };
|
| | | }
|
| | |
|
| | | return btnEditor;
|
| | | } |