| | |
| | | public UserPage() |
| | | { |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor; |
| | | Shared.Application.LocationAction += (lon, lat) => |
| | | { |
| | | //上报经纬度 |
| | | Login.AccountLogic.Instance.ReceiveAppLatAndLon(lon.ToString(), lat.ToString()); |
| | | }; |
| | | //添加App的经纬度上报事件 |
| | | HdlOtherFunctionLogic.Current.AddAppLatAndLonEvent(); |
| | | }
|
| | |
|
| | | /// <summary> |
| | |
| | | if (Shared.Application.IsFullScreen == true)
|
| | | {
|
| | | //高版本的苹果机型,屏幕底部会有一个黑色的杠
|
| | | ControlCommonResourse.BottomFrameHeight = Application.GetRealHeight(242);
|
| | | ControlCommonResourse.BottomFrameHeight = Application.GetRealHeight(180);
|
| | | }
|
| | | #endif
|
| | | //用户主体界面(中间部分)
|
| | | this.bodyFrameView = new NormalFrameLayout();
|
| | | bodyFrameView.Height = this.Height - UserCenter.ControlCommonResourse.BottomFrameHeight;
|
| | | bodyFrameView.Height = this.Height - HdlControlResourse.BottomFrameHeight;
|
| | | bodyFrameView.BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor;
|
| | | this.AddChidren(bodyFrameView);
|
| | |
|
| | | //用户菜单界面(底部部分) |
| | | var bottomMenuFrame = new FrameLayout();
|
| | | bottomMenuFrame.Gravity = Gravity.BottomCenter; |
| | | bottomMenuFrame.Height = ControlCommonResourse.BottomFrameHeight;
|
| | | bottomMenuFrame.Height = HdlControlResourse.BottomFrameHeight;
|
| | | bottomMenuFrame.BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCBottomColor;
|
| | | this.AddChidren(bottomMenuFrame); |
| | | //底部菜单的头部线 |
| | | var bottomLine = new NormalViewControl(bottomMenuFrame.Width, ControlCommonResourse.BottomLineHeight, false);
|
| | | var bottomLine = new NormalViewControl(bottomMenuFrame.Width, HdlControlResourse.BottomLineHeight, false);
|
| | | bottomLine.BackgroundColor = 0xffc8c8c9;
|
| | | bottomMenuFrame.AddChidren(bottomLine);
|
| | |
|
| | |
| | | public void ShowCategoryAutoListForm() |
| | | { |
| | | //关闭全部界面,直到主页为止 |
| | | UserCenterLogic.CloseAllOpenForm(); |
| | | HdlFormLogic.Current.CloseAllOpenForm(null, false); |
| | | //强制显示自动化列表界面 |
| | | UserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2;
|
| | | HdlUserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2;
|
| | |
|
| | | this.nowSelectMenu = MenuSelectEnum.A分类;
|
| | |
|