wei
2020-11-27 1293fea19c6a2b558986856e301d5218c1979692
HDL_ON/UI/UI2/4-PersonalCenter/AboutOnPage.cs
New file
@@ -0,0 +1,56 @@
using System;
using Shared;
using HDL_ON.UI.CSS;
namespace HDL_ON.UI
{
    public class AboutOnPage : FrameLayout
    {
        FrameLayout bodyView;
        public AboutOnPage()
        {
            bodyView = this;
        }
        public void LoadPage()
        {
            new TopViewDiv(bodyView, Language.StringByID(StringId.About)).LoadTopView();
            Button btnOnIcon = new Button()
            {
                Gravity = Gravity.CenterHorizontal,
                Y = Application.GetRealWidth(106),
                Width = Application.GetRealWidth(58),
                Height = Application.GetRealWidth(58),
                UnSelectedImagePath = "OnIcon.png",
            };
            bodyView.AddChidren(btnOnIcon);
            Button btnOnTitle = new Button()
            {
                //Gravity = Gravity.CenterHorizontal,
                Y = Application.GetRealWidth(184),
                Height = Application.GetRealWidth(28),
                TextAlignment = TextAlignment.Center,
                Text = "ON+",
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.EmphasisFontSize_Secondary,
                IsBold = true,
            };
            bodyView.AddChidren(btnOnTitle);
            Button btnOnVersion = new Button()
            {
                Y = btnOnTitle.Bottom,
                Height = Application.GetRealWidth(25),
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.TextualColor,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                Text = Language.StringByID(StringId.VersionNumber) + " " + MainPage.VersionString,
            };
            bodyView.AddChidren(btnOnVersion);
        }
    }
}