JLChen
2020-11-25 52e05a5fb6e07afbb14960fc3cbb8a8971e19eb2
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
using System;
using HDL_ON.UI.CSS;
using Shared;
 
namespace HDL_ON.UI
{
    /// <summary>
    /// 通用提示View--内容为空
    /// 空空如也
    /// </summary>
    public class EmptyTipView : FrameLayout
    {
        /// <summary>
        /// 
        /// </summary>
        public Button btnTipNotText;
 
        /// <summary>
        /// 
        /// </summary>
        public Button btnTipNot;
 
        /// <summary>
        /// 
        /// </summary>
        public EmptyTipView()
        {
            int tipHeight = Application.GetRealWidth(180);
 
            this.Height = tipHeight + Application.GetRealHeight(17);
 
            btnTipNot = new Button()
            {
                Gravity = Gravity.CenterHorizontal,
                Width = tipHeight,
                Height = tipHeight,
                UnSelectedImagePath = "TipNot.png",
            };
            this.AddChidren(btnTipNot);
 
            //空空如也
            Button btnTipNotText = new Button()
            {
                Y = btnTipNot.Bottom,
                Height = Application.GetRealHeight(17),
                TextID = StringId.ContentIsEmpty,
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.TextualColor,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
            };
            this.AddChidren(btnTipNotText);
        }
 
    }
}