From e87985ec1dcb69beedaf9f95e8e7aba14b7c08d6 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 09 十二月 2020 18:50:14 +0800 Subject: [PATCH] 2020-12-09 1.信息中心,增加下划线和点击Alter提醒详情。 --- HDL_ON/UI/UI0-Public/TopViewDiv.cs | 45 +++++++++++++++++++++++++++++++++++++-------- 1 files changed, 37 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI0-Public/TopViewDiv.cs b/HDL_ON/UI/UI0-Public/TopViewDiv.cs index 0b31b9d..f80c4c3 100644 --- a/HDL_ON/UI/UI0-Public/TopViewDiv.cs +++ b/HDL_ON/UI/UI0-Public/TopViewDiv.cs @@ -50,12 +50,12 @@ /// TopViewDiv /// </summary> /// <param name="frame">鐖舵帶浠�</param> - /// <param name="str">鏍囬</param> + /// <param name="title">鏍囬</param> /// <param name="needClose">鏄惁闇�瑕佸叧闂〉闈�</param> - public TopViewDiv(FrameLayout frame, string str, bool needClose) + public TopViewDiv(FrameLayout frame, string title, bool needClose) { baseView = frame; - title = str; + this.title = title; this.needClose = needClose; } @@ -87,7 +87,7 @@ }; baseView.AddChidren(contentView); - btnBack = new Button() + Button btnBackIcon = new Button() { X = Application.GetRealWidth(10), Y = Application.GetRealHeight(29), @@ -95,20 +95,27 @@ Height = Application.GetRealWidth(28), UnSelectedImagePath = "Public/BackIcon.png", }; - baseView.AddChidren(btnBack); + contentView.AddChidren(btnBackIcon); + + btnBack = new Button() + { + Width = Application.GetRealWidth(50), + //BackgroundColor = CSS_Color.AuxiliaryColor2, + }; + contentView.AddChidren(btnBack); Button btnTilte = new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(30), - Width = Application.GetRealWidth(150), + Width = Application.GetRealWidth(270), Height = Application.GetRealHeight(25), TextAlignment = TextAlignment.Center, TextSize = CSS_FontSize.HeadlineFontSize, TextColor = CSS_Color.FirstLevelTitleColor, Text = title }; - baseView.AddChidren(btnTilte); + contentView.AddChidren(btnTilte); LoadEventList(); @@ -122,6 +129,28 @@ backAction = backAct; LoadTopView(); + } + + public void LoadTopView_RoomTop(Action backAction ,Action editAction) + { + this.backAction = backAction; + + LoadTopView(); + + var btnSetting = new Button() + { + X = Application.GetRealWidth(337), + Y = Application.GetRealHeight(29), + Width = Application.GetMinRealAverage(28), + Height = Application.GetMinRealAverage(28), + UnSelectedImagePath = "Public/FuncInfoSetIcon.png", + }; + contentView.AddChidren(btnSetting); + + btnSetting.MouseUpEventHandler = (sender, e) => + { + editAction(); + }; } /// <summary> @@ -145,7 +174,7 @@ }; contentView.AddChidren(btnSetting); - btnSetting.MouseUpEventHandler += (sender, e) => + btnSetting.MouseUpEventHandler = (sender, e) => { var infoView = new FunctionBaseInfoSetPage(function, action); MainPage.BasePageView.AddChidren(infoView); -- Gitblit v1.8.0