From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 28 二月 2020 15:25:13 +0800 Subject: [PATCH] 2020.2.28 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs | 65 +++++++++++++++++++++++++++++++- 1 files changed, 62 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs index 2cca9c1..978c5e4 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs @@ -26,6 +26,25 @@ /// </summary> public FrameLayout bodyFrameLayout = null; /// <summary> + /// 宸︽粦浣胯兘 + /// </summary> + private bool m_ScrollEnabled = true; + /// <summary> + /// 宸︽粦浣胯兘 + /// </summary> + public bool ScrollEnabled + { + get { return m_ScrollEnabled; } + set + { + if (UserView.HomePage.Instance.ScrollEnabled != value) + { + UserView.HomePage.Instance.ScrollEnabled = value; + this.m_ScrollEnabled = value; + } + } + } + /// <summary> /// 缂撳瓨鍚姩鍙傛暟 /// </summary> private object[] m_parameter = null; @@ -46,6 +65,9 @@ //鍒濆鍖栦腑閮ㄦ帶浠� this.InitBodyFrameLayout(); + + //鍒濆宸︽粦浣胯兘鍙� + this.ScrollEnabled = true; } /// <summary> @@ -89,6 +111,12 @@ topFrameLayout.Name = "topFrameLayout"; this.AddChidren(topFrameLayout); + //绾� + var btnLine = new NormalViewControl(topFrameLayout.Width, 1, false); + btnLine.BackgroundColor = 0x40000000; + btnLine.Y = topFrameLayout.Height - 1; + topFrameLayout.AddChidren(btnLine); + //杩斿洖閿� var btnBack = new BackViewControl(); topFrameLayout.AddChidren(btnBack); @@ -103,6 +131,8 @@ //鏍囬 var txttitle = new TopLayoutTitleControl(); topFrameLayout.AddChidren(txttitle); + //绮椾綋 + txttitle.IsBold = true; topFrameLayout.AddTag("txtTitle", txttitle); } @@ -162,13 +192,13 @@ /// <summary> /// 鐢婚潰鍏抽棴 /// </summary> - public override void CloseForm() + public override void CloseFormBefore() { this.m_parameter = null; //娓呯┖bodyFrame this.ClearBodyFrame(); - base.CloseForm(); + base.CloseFormBefore(); } #endregion @@ -234,9 +264,38 @@ } #endregion + + #region 鈻� 娣诲姞甯姪鎺т欢_______________________ + /// <summary> + /// 娣诲姞鏌ョ湅甯姪鎺т欢 + /// </summary> + /// <returns></returns> + public NormalViewControl AddHelpControl() + { + //鏌ョ湅甯姪 + var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false); + btnHelp.Y = Application.GetRealHeight(1388); + btnHelp.TextSize = 12; + btnHelp.TextAlignment = TextAlignment.Center; + btnHelp.TextColor = UserCenterColor.Current.TextOrangeColor; + btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp); + bodyFrameLayout.AddChidren(btnHelp); + //搴曠嚎 + int lineWidth = btnHelp.GetRealWidthByText(); + var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false); + btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor; + btnLine.Gravity = Gravity.CenterHorizontal; + btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8); + bodyFrameLayout.AddChidren(btnLine); + + return btnHelp; + } + + #endregion + #region 鈻� 鏄剧ず娌℃湁鏁版嵁鐨勫浘鍍忔樉绀虹壒鏁坃________ - + /// <summary> /// 鏄剧ず娌℃湁鏁版嵁鐨勫浘鍍忔樉绀虹壒鏁� /// </summary> -- Gitblit v1.8.0