| | |
| | | /// <summary>
|
| | | /// 主菜单背景框
|
| | | /// </summary>
|
| | | private FrameLayout frameMainMenuBack = null;
|
| | | private NormalFrameLayout frameMainMenuBack = null;
|
| | | /// <summary>
|
| | | /// 其他菜单的容器控件
|
| | | /// </summary>
|
| | |
| | | /// </summary>
|
| | | public void ShowForm()
|
| | | {
|
| | | this.FormID = "UserMainForm";
|
| | |
|
| | | //特殊处理:恢复可关闭进度条,别问为什么,我也不知道为什么,以防万一而已
|
| | | ProgressBar.SetCloseBarFlag(false);
|
| | | //初始化框架
|
| | | this.InitForm();
|
| | | //初始化头部控件
|
| | | this.InitTopFrameLayout();
|
| | | //初始化中部控件
|
| | | this.InitBodyFrameLayout();
|
| | | //移除返回键
|
| | | base.RemoveBackButton();
|
| | |
|
| | | //body占完整个屏幕,除了底部菜单
|
| | | bodyFrameLayout.Y = 0;
|
| | | bodyFrameLayout.Height = ControlCommonResourse.TopMenuFrameHeight + ControlCommonResourse.TopFrameHeight
|
| | | + ControlCommonResourse.BodyFrameHeight - ControlCommonResourse.BottomFrameHeight;
|
| | | bodyFrameLayout.Height = this.Height;
|
| | | bodyFrameLayout.BackgroundColor = UserCenterColor.Current.BlackBackGround;
|
| | |
|
| | | //初始化中部控件
|
| | |
| | | else
|
| | | {
|
| | | //背景框
|
| | | frameMainMenuBack = new FrameLayout();
|
| | | frameMainMenuBack = new NormalFrameLayout();
|
| | | frameMainMenuBack.Y = Application.GetRealHeight(288);
|
| | | frameMainMenuBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameMainMenuBack.Height = Application.GetRealHeight(371);
|