黄学彪
2020-09-22 ade5917841b0fdcb1df7353ef7c56b1a1bdc9282
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
using System;
using Shared.Common;
using Shared.Phone.Device.CommonForm;
 
namespace Shared.Phone.UserView
{
    public class LoginLoading : FrameLayout
    {
        public LoginLoading()
        {
            BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor;
            Tag = "Login";
            this.BackgroundImagePath = "Logo/StartBackGroud.png";
        }
 
        /// <summary>
        /// show
        /// </summary>
        public void Show()
        {
            //Logo图标
            var btnIcon = new Button();
            btnIcon.Y = Application.GetRealHeight(570);
            btnIcon.Width = UserCenter.HdlControlLogic.Current.GetPictrueRealSize(184);
            btnIcon.Height = UserCenter.HdlControlLogic.Current.GetPictrueRealSize(184);
            btnIcon.UnSelectedImagePath = "Logo/Logo.png";
            btnIcon.Gravity = Gravity.CenterHorizontal;
            this.AddChidren(btnIcon);
 
            //Hdl Home
            var btnText = new Button();
            btnText.Height = Application.GetRealHeight(70);
            btnText.Y = btnIcon.Bottom;
            btnText.TextAlignment = TextAlignment.Center;
            btnText.Text = "HDL Home";
            btnText.TextColor = UserCenter.UserCenterColor.Current.White;
            btnText.TextSize = 16;
            this.AddChidren(btnText);
 
            //智能改变生活 | Enjoy smart life
            var btnTip = new Button();
            btnTip.Height = btnIcon.Bottom + Application.GetRealHeight(850);
            btnTip.Y = btnIcon.Bottom;
            btnTip.TextAlignment = TextAlignment.Center;
            btnTip.TextSize = 16;
            btnTip.TextID = R.MyInternationalizationString.uLogoPageText;
            this.AddChidren(btnTip);
        }
    }
}