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"; } /// /// show /// 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); } } }