wxr
2021-03-15 6e580804d74d7a6fb118b6ba381e88aa81f267c7
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
New file
@@ -0,0 +1,98 @@
using System;
using HDL_ON.UI.CSS;
using Shared;
namespace HDL_ON.UI
{
    public class BrandListPage : FrameLayout
    {
        FrameLayout bodyView;
        FrameLayout contentView;
        public BrandListPage()
        {
            bodyView = this;
        }
        public void LoadPage()
        {
            new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView();
            bodyView.BackgroundColor = CSS_Color.BackgroundColor;
            contentView = new FrameLayout()
            {
                Y = Application.GetRealHeight(64),
                Height = Application.GetRealHeight(603),
            };
            bodyView.AddChidren(contentView);
            NotListTipView();
        }
        void NotListTipView()
        {
            var btnTip = new Button()
            {
                Gravity = Gravity.CenterHorizontal,
                Y = Application.GetRealHeight(108),
                Width = Application.GetRealWidth(180),
                Height = Application.GetRealWidth(180),
                UnSelectedImagePath = "TipNot.png",
            };
            contentView.AddChidren(btnTip);
            var btnTipText = new Button()
            {
                Y = Application.GetRealHeight(292),
                Height = Application.GetRealHeight(52),
                TextSize = CSS_FontSize.TextFontSize,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextAlignment = TextAlignment.Center,
                TextID = StringId.Not3tyBrandListTip,
            };
            contentView.AddChidren(btnTipText);
            var btnTipText1 = new Button()
            {
                Y = Application.GetRealHeight(459),
                Height = Application.GetRealHeight(41),
                TextSize = CSS_FontSize.TextFontSize,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextAlignment = TextAlignment.Center,
                TextID = StringId.Use3tyBrandListTip,
            };
            contentView.AddChidren(btnTipText1);
            var btnAdd = new Button()
            {
                Y = Application.GetRealHeight(500),
                Gravity = Gravity.CenterHorizontal,
                Width = Application.GetRealWidth(220),
                Height = Application.GetRealWidth(44),
                BackgroundColor = CSS_Color.MainColor,
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.MainBackgroundColor,
                TextSize = CSS_FontSize.SubheadingFontSize,
                IsBold = true,
                Radius = (uint)Application.GetRealWidth(22),
                BorderColor = 0x00000000,
                BorderWidth = 0,
                TextID = StringId.Add,
            };
            contentView.AddChidren(btnAdd);
            btnAdd.MouseUpEventHandler = (sender, e) => {
                Console.WriteLine("ddd");
            };
        }
    }
}