| | |
| | | /// </summary>
|
| | | private void InitMsgControl()
|
| | | {
|
| | | //添加界面
|
| | | var nowForm = UserView.HomePage.Instance.GetChildren(UserView.HomePage.Instance.ChildrenCount - 1);
|
| | | if (nowForm == null || (nowForm is ViewGroup) == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //主控件
|
| | | var frameMain = new FrameLayout();
|
| | | frameMain.BackgroundColor = UserCenterColor.Current.DialogBackColor;
|
| | | ((ViewGroup)nowForm).AddChidren(frameMain);
|
| | | Common.CommonPage.Instance.AddChidren(frameMain);
|
| | | frameMain.MouseUpEventHandler += (sender, e) =>
|
| | | {
|
| | | //移除界面
|
| | | frameMain.RemoveFromParent();
|
| | | this.ConfirmClickEvent = null;
|
| | | };
|
| | |
|
| | | //白色背景框
|
| | | var frameBack = new FrameLayout();
|
| | |
| | | {
|
| | | #if Android
|
| | | //确认
|
| | | var frameConfirm = new FrameLayoutControl();
|
| | | var frameConfirm = new FrameLayoutStatuControl();
|
| | | frameConfirm.Height = Application.GetRealHeight(127);
|
| | | frameConfirm.Width = frameBack.Width;
|
| | | frameConfirm.Gravity = Gravity.BottomCenter;
|