From a9d1161b1df96e7ddad566335989a1444e433ef5 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期二, 28 三月 2023 11:54:45 +0800 Subject: [PATCH] 2023年03月28日11:52:02 --- HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs | 47 ++++++++++++++++++++++++++++++----------------- 1 files changed, 30 insertions(+), 17 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs index 4d894c0..7101fbe 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs @@ -22,13 +22,24 @@ public void LoadPage() { - new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView();//.LoadTopView_AddIcon("3ty",action); + Action<string,string> action = (str1,str2) => { - bodyView.BackgroundColor = CSS_Color.BackgroundColor; + }; + + new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView_Add3tyIot(action); + + bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; + + bodyView.AddChidren(new Button + { + Y = Application.GetRealHeight(64), + Height = Application.GetRealHeight(1), + BackgroundColor = CSS_Color.DividingLineColor, + }); contentView = new VerticalRefreshLayout() { - Y = Application.GetRealHeight(64), + Y = Application.GetRealHeight(65), Height = Application.GetRealHeight(603), }; bodyView.AddChidren(contentView); @@ -98,22 +109,23 @@ { var row = new RowLayout() { - Height = Application.GetRealHeight(50), + Height = Application.GetRealHeight(87), BackgroundColor = CSS_Color.MainBackgroundColor, LineColor = 0x00000000, }; contentView.AddChidren(row); - if (isFrist) - { - isFrist = false; - } - else + //if (isFrist) + //{ + // isFrist = false; + //} + //else { Button btnLine = new Button() { - X = Application.GetRealWidth(56), - Width = Application.GetRealWidth(303), + Y = Application.GetRealHeight(86), + Gravity = Gravity.CenterHorizontal, + Width = Application.GetRealWidth(343), Height = 1, BackgroundColor = CSS_Color.DividingLineColor, }; @@ -124,9 +136,9 @@ { X = Application.GetRealWidth(12), Gravity = Gravity.CenterVertical, - Width = Application.GetRealWidth(32), - Height = Application.GetRealWidth(32), - Radius = (uint)Application.GetRealWidth(4), + Width = Application.GetRealWidth(47), + Height = Application.GetRealWidth(47), + Radius = (uint)Application.GetRealWidth(9), BackgroundColor = CSS_Color.PromptingColor1 }; row.AddChidren(btnIcon); @@ -142,11 +154,11 @@ Button btnName = new Button() { - X = Application.GetRealWidth(56), - Width = Application.GetRealWidth(303), + X = Application.GetRealWidth(83), + Width = Application.GetRealWidth(310), TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, + TextSize = CSS_FontSize.SubheadingFontSize, Text = brand.brandName, }; row.AddChidren(btnName); @@ -154,6 +166,7 @@ ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon); btnName.MouseUpEventHandler = (sender, e) => { + var page = new DeviceListPage(brand); MainPage.BasePageView.AddChidren(page); page.LoadPage(); -- Gitblit v1.8.0