From 25bb055b0249d86548883083bb315922e6a2076b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 24 十一月 2020 15:39:08 +0800 Subject: [PATCH] 2020-11-24 1.注册增加服务器选择。 2.增加极光推送接口 --- HDL_ON/UI/UI1-Login/SelectServerDialog.cs | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/SelectServerDialog.cs b/HDL_ON/UI/UI1-Login/SelectServerDialog.cs index 4ad3d99..5565817 100644 --- a/HDL_ON/UI/UI1-Login/SelectServerDialog.cs +++ b/HDL_ON/UI/UI1-Login/SelectServerDialog.cs @@ -25,9 +25,10 @@ /// <summary> /// /// </summary> - public SelectServerDialog() + public SelectServerDialog(Action selectAction) { bodyView = new FrameLayout(); + this.selectAction = selectAction; } @@ -36,12 +37,14 @@ /// </summary> public void LoadPage() { - bodyView.BackgroundColor = CSS_Color.BackgroundColor; + bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; this.AddChidren(bodyView); - new TopViewDiv(this, bodyView, Language.StringByID(StringId.SelectCountryOrRegion)).LoadTopView(); - + //鍔犺浇椤堕儴鑿滃崟鏍� + new TopViewDiv(this, bodyView, Language.StringByID(StringId.PleaseSelectCountryOrRegion)).LoadTopView(); //鍔犺浇鏈嶅姟鍣ㄥ尯鍩熼�夋嫨 AddRegionalSelectionView(); + //Show + this.Show(); } @@ -125,7 +128,7 @@ /// <param name="VerticalScrolViewMiddle"></param> void AddRowView(GlobalRegionListRes mGlobalRegion, VerticalScrolViewLayout VerticalScrolViewMiddle) { - var rowView = new RowLayout() + var rowView = new FrameLayout() { Height = Application.GetRealHeight(44), }; @@ -134,15 +137,18 @@ var urlBtn = new Button() { X = Application.GetRealWidth(16), Height = rowView.Height, + Width = Application.GetRealWidth(200), TextSize = CSS_FontSize.SubheadingFontSize, TextColor = CSS_Color.FirstLevelTitleColor, - Gravity = Gravity.CenterLeft + SelectedTextColor = CSS_Color.MainColor, + //Gravity = Gravity.CenterLeft, + TextAlignment = TextAlignment.CenterLeft }; rowView.AddChidren(urlBtn); - var lineView = new LineView(); - rowView.AddChidren(lineView); - lineView.Y = rowView.Height - lineView.Height; + //var lineView = new LineView(); + //rowView.AddChidren(lineView); + //lineView.Y = rowView.Height - lineView.Height; EventHandler<MouseEventArgs> eHandler = (sender, e) => { UserInfo.Current.RequestHttpsHost = mGlobalRegion.regionUrl; @@ -155,7 +161,7 @@ rowView.MouseUpEventHandler += eHandler; urlBtn.MouseUpEventHandler += eHandler; - + urlBtn.Text = mGlobalRegion.regionName; if (mGlobalRegion.regionUrl == UserInfo.Current.RequestHttpsHost) { urlBtn.TextColor = CSS_Color.MainColor; -- Gitblit v1.8.0