using System; using Shared; using HDL_ON.UI.CSS; namespace HDL_ON.UI { /// /// 功能介绍 /// public class FunctionIntroductionPage : FrameLayout { FrameLayout bodyView; /// /// /// FrameLayout emptyTipFrameLayout; /// /// 当前 /// VerticalScrolViewLayout bodyScrolView; public FunctionIntroductionPage() { bodyView = this; } public void LoadPage() { new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionIntroduced)).LoadTopView(); int bodyY = Application.GetRealHeight(64); bodyScrolView = new VerticalScrolViewLayout() { Y = bodyY, Height = bodyView.Height - bodyY, BackgroundColor = CSS_Color.MainBackgroundColor, }; bodyView.AddChidren(bodyScrolView); AddEmptyTipView(); } /// /// 添加内容为空提示页面 /// void AddEmptyTipView() { //int bodyY = Application.GetRealHeight(64); //emptyTipFrameLayout = new FrameLayout() //{ // Y = bodyY, // Height = bodyView.Height - bodyY, // BackgroundColor = CSS_Color.MainBackgroundColor, //}; //bodyView.AddChidren(emptyTipFrameLayout); var emptyTipView = new EmptyTipView() { Gravity = Gravity.Center }; bodyView.AddChidren(emptyTipView); } } }