| | |
| | | return m_Current;
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 消息控件单击的事件
|
| | | /// </summary>
|
| | | public Action MsgClickEvent = null;
|
| | | /// <summary>
|
| | | /// 界面关闭的事件
|
| | | /// </summary>
|
| | | public Action CloseEvent = null;
|
| | | /// <summary>
|
| | | /// 容器控件
|
| | | /// </summary>
|
| | |
| | | /// </summary>
|
| | | private void InitProgressFormBar()
|
| | | {
|
| | | var nowForm = UserView.HomePage.Instance.GetChildren(UserView.HomePage.Instance.ChildrenCount - 1);
|
| | | if (nowForm == null || (nowForm is ViewGroup) == false)
|
| | | {
|
| | | //这种情况应该不存在
|
| | | var alert = new ShowMsgControl(ShowMsgType.Error, "ERROR:Not Found The ActionForm!");
|
| | | alert.Show();
|
| | | return;
|
| | | }
|
| | | //安卓可以点击系统的返回键
|
| | | this.oldScrollEnabled = UserView.HomePage.Instance.ScrollEnabled;
|
| | | UserView.HomePage.Instance.ScrollEnabled = false;
|
| | | Shared.Common.CommonPage.BackKeyCanClick = false;
|
| | |
|
| | | this.oldPrigressVisible = Common.CommonPage.Loading.Visible;
|
| | | if (oldPrigressVisible == true)
|
| | | {
|
| | | //圆形进度条临时关闭
|
| | | Common.CommonPage.Loading.Hide();
|
| | | }
|
| | |
|
| | | //容器
|
| | | bodyFrameLayout = new FrameLayout();
|
| | | bodyFrameLayout.BackgroundColor = UserCenterColor.Current.DialogBackColor;
|
| | | ((ViewGroup)nowForm).AddChidren(bodyFrameLayout);
|
| | | Common.CommonPage.Instance.AddChidren(bodyFrameLayout);
|
| | | //var nowForm = UserView.HomePage.Instance.GetChildren(UserView.HomePage.Instance.ChildrenCount - 1);
|
| | | //if (nowForm != null && (nowForm is ViewGroup) == true)
|
| | | //{
|
| | | // ((ViewGroup)nowForm).AddChidren(bodyFrameLayout);
|
| | | //}
|
| | |
|
| | | var frameBack = new FrameLayout();
|
| | | frameBack.Width = Application.GetRealWidth(674);
|
| | |
| | | frameBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameBack.Y = Application.GetRealHeight(683);
|
| | | frameBack.Radius = 6;
|
| | | frameBack.Radius = (uint)Application.GetRealHeight(17);
|
| | | bodyFrameLayout.AddChidren(frameBack);
|
| | |
|
| | | //进度显示文本
|
| | |
| | | btnText.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | btnText.TextAlignment = TextAlignment.Center;
|
| | | frameBack.AddChidren(btnText);
|
| | | btnText.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.MsgClickEvent?.Invoke();
|
| | | };
|
| | |
|
| | | //进度条
|
| | | var btnProRow = new FrameLayout();
|
| | |
| | | this.btnProgressBar = new FrameLayout();
|
| | | btnProgressBar.Width = 0;
|
| | | btnProgressBar.Height = btnProRow.Height;
|
| | | btnProgressBar.Radius = btnProRow.Radius;
|
| | | btnProgressBar.BackgroundColor = 0xfffb744a;
|
| | | btnProgressBar.Radius = (uint)Application.GetRealHeight(29) / 2;
|
| | | btnProRow.AddChidren(btnProgressBar);
|
| | |
| | | var btnProgressPic = new PicViewControl(84, 60);
|
| | | btnProgressPic.UnSelectedImagePath = "Item/ProgressMsg.png";
|
| | | frameProgress.AddChidren(btnProgressPic);
|
| | | this.btnProgressView = new NormalViewControl(84, 32, true);
|
| | | this.btnProgressView = new NormalViewControl(84, 45, true);
|
| | | btnProgressView.TextSize = 10;
|
| | | btnProgressView.TextAlignment = TextAlignment.Center;
|
| | | btnProgressView.Text = "0%";
|
| | |
| | | btnProgressView = null;
|
| | | frameProgress = null;
|
| | | btnProgressBar = null;
|
| | | this.MsgClickEvent = null;
|
| | | //关闭事件
|
| | | this.CloseEvent?.Invoke();
|
| | | this.CloseEvent = null;
|
| | | });
|
| | | }
|
| | |
|