| | |
| | | /// </summary> |
| | | Button btnEmailLogin; |
| | | #region 服务器选择 |
| | | /// <summary> |
| | | /// 服务器区域 |
| | | /// </summary> |
| | | FrameLayout serverView; |
| | | /// <summary> |
| | | /// 服务器Icon按钮 |
| | | /// </summary> |
| | | Button btnServerIcon; |
| | | /// <summary> |
| | | /// 服务器文本框 |
| | | /// </summary> |
| | | Button btnServerText; |
| | | ///// <summary> |
| | | ///// 服务器区域 |
| | | ///// </summary> |
| | | //FrameLayout serverView; |
| | | ///// <summary> |
| | | ///// 服务器Icon按钮 |
| | | ///// </summary> |
| | | //Button btnServerIcon; |
| | | ///// <summary> |
| | | ///// 服务器文本框 |
| | | ///// </summary> |
| | | //EditText etServer; |
| | | //Button btnServerText; |
| | | /////// <summary> |
| | | /////// 服务器文本框 |
| | | /////// </summary> |
| | | ////EditText etServer; |
| | | /////// <summary> |
| | | /////// 服务器子区域里面的分割线1 |
| | | /////// </summary> |
| | | ////Button btnLineVertical_server; |
| | | ///// <summary> |
| | | ///// 服务器子区域里面的分割线1 |
| | | /////服务器go按钮 |
| | | ///// </summary> |
| | | //Button btnLineVertical_server; |
| | | /// <summary> |
| | | ///服务器go按钮 |
| | | /// </summary> |
| | | Button btnServerGo; |
| | | /// <summary> |
| | | /// 服务器子区域底部横线 |
| | | /// </summary> |
| | | Button btnServerBottomLine; |
| | | //Button btnServerGo; |
| | | ///// <summary> |
| | | ///// 服务器子区域底部横线 |
| | | ///// </summary> |
| | | //Button btnServerBottomLine; |
| | | #endregion |
| | | /// <summary> |
| | | /// 账号子区域 |
| | |
| | | Application.HideSoftInput(); |
| | | }; |
| | | |
| | | new TopViewDiv(this, bodyView, Language.StringByID(StringId.Register)).LoadTopView(backAction); |
| | | |
| | | var topView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(20), |
| | | Height = Application.GetRealHeight(64), |
| | | BackgroundColor = CSS_Color.TopViewColor, |
| | | }; |
| | | bodyView.AddChidren(topView); |
| | | |
| | | new TopViewDiv(this, topView, Language.StringByID(StringId.Register)).LoadTopView(backAction); |
| | | //new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(StringId.Register)); |
| | | |
| | | #region 注册方式选择 |
| | |
| | | #endregion |
| | | |
| | | #region 服务器选择 |
| | | serverView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(167), |
| | | Width = Application.GetRealWidth(319), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | | bodyView.AddChidren(serverView); |
| | | //serverView = new FrameLayout() |
| | | //{ |
| | | // X = Application.GetRealWidth(28), |
| | | // Y = Application.GetRealHeight(167), |
| | | // Width = Application.GetRealWidth(319), |
| | | // Height = Application.GetRealHeight(44), |
| | | //}; |
| | | //bodyView.AddChidren(serverView); |
| | | |
| | | btnServerIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(9), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(20), |
| | | Height = Application.GetMinRealAverage(20), |
| | | UnSelectedImagePath = "LoginIcon/Server.png", |
| | | //btnServerIcon = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(9), |
| | | // Gravity = Gravity.CenterVertical, |
| | | // Width = Application.GetMinRealAverage(20), |
| | | // Height = Application.GetMinRealAverage(20), |
| | | // UnSelectedImagePath = "LoginIcon/Server.png", |
| | | |
| | | }; |
| | | serverView.AddChidren(btnServerIcon); |
| | | //}; |
| | | //serverView.AddChidren(btnServerIcon); |
| | | |
| | | btnServerText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(49), |
| | | Width = Application.GetRealWidth(319 - 78), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.PleaseSelectCountryOrRegion, |
| | | }; |
| | | serverView.AddChidren(btnServerText); |
| | | //btnServerText = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(49), |
| | | // Width = Application.GetRealWidth(319 - 78), |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.PromptingColor1, |
| | | // TextSize = CSS_FontSize.TextFontSize, |
| | | // TextID = StringId.PleaseSelectCountryOrRegion, |
| | | //}; |
| | | //serverView.AddChidren(btnServerText); |
| | | |
| | | #region 密码登录-控件加载 |
| | | btnServerGo = new Button() |
| | | { |
| | | X = Application.GetRealWidth(303), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | serverView.AddChidren(btnServerGo); |
| | | //btnServerGo = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(303), |
| | | // Gravity = Gravity.CenterVertical, |
| | | // Width = Application.GetMinRealAverage(16), |
| | | // Height = Application.GetMinRealAverage(16), |
| | | // UnSelectedImagePath = "Public/Right.png", |
| | | //}; |
| | | //serverView.AddChidren(btnServerGo); |
| | | |
| | | #endregion |
| | | btnServerBottomLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(42), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | SelectedBackgroundColor = CSS_Color.MainColor, |
| | | Height = Application.GetRealHeight(1), |
| | | }; |
| | | serverView.AddChidren(btnServerBottomLine); |
| | | //btnServerBottomLine = new Button() |
| | | //{ |
| | | // Y = Application.GetRealHeight(42), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | // SelectedBackgroundColor = CSS_Color.MainColor, |
| | | // Height = Application.GetRealHeight(1), |
| | | //}; |
| | | //serverView.AddChidren(btnServerBottomLine); |
| | | #endregion |
| | | |
| | | int topPadding = Application.GetRealHeight(12); |
| | |
| | | accountView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = serverView.Bottom + topPadding, |
| | | Y = Application.GetRealHeight(167), |
| | | Width = Application.GetRealWidth(319), |
| | | Height = Application.GetRealHeight(44), |
| | | //X = Application.GetRealWidth(28), |
| | | //Y = serverView.Bottom + topPadding, |
| | | //Width = Application.GetRealWidth(319), |
| | | //Height = Application.GetRealHeight(44), |
| | | }; |
| | | bodyView.AddChidren(accountView); |
| | | |