wei
2020-11-27 e53a1951d6aa07ad22aad9816da4703496fcbccd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using Shared;
using HDL_ON.UI.CSS;
 
namespace HDL_ON.UI
{
    /// <summary>
    /// 问题列表页面
    /// 功能问题、场景问题、APP使用辅助
    /// </summary>
    public class QuestionListPage : FrameLayout
    {
        /// <summary>
        /// bodyView
        /// </summary>
        FrameLayout bodyView;
        /// <summary>
        /// 当前
        /// </summary>
        VerticalScrolViewLayout bodyScrolView;
        /// <summary>
        /// emptyTipView
        /// </summary>
        EmptyTipView emptyTipView;
 
        /// <summary>
        /// 
        /// </summary>
        public QuestionListPage()
        {
            bodyView = this;
        }
 
        /// <summary>
        /// 加载显示网页
        /// </summary>
        /// <param name="titleId"></param>
        public void LoadPage(int titleId)
        {
            new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
 
            int bodyY = Application.GetRealHeight(64);
            bodyScrolView = new VerticalScrolViewLayout()
            {
                Y = bodyY,
                Height = bodyView.Height - bodyY,
                BackgroundColor = CSS_Color.MainBackgroundColor,
            };
            bodyView.AddChidren(bodyScrolView);
 
            AddEmptyTipView();
        }
 
        /// <summary>
        /// 添加内容为空提示页面
        /// </summary>
        void AddEmptyTipView()
        {
            emptyTipView = new EmptyTipView()
            {
                Gravity = Gravity.Center
            };
            bodyView.AddChidren(emptyTipView);
        }
    }
}