| | |
| | | { |
| | | try |
| | | { |
| | | bodyView = this; |
| | | bodyView = this;//1 |
| | | bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | ContextView = new FrameLayout() |
| | | { |
| | |
| | | { |
| | | Y = Application.GetRealHeight(607), |
| | | Height = Application.GetMinRealAverage(60), |
| | | //BackgroundColor = CSS_Color.BackgroundColor |
| | | }; |
| | | bodyView.AddChidren(navigationView); |
| | | if (MainPage.Increase) |
| | | { |
| | | //ContextView.Height = Application.GetRealHeight(618 + 20); |
| | | navigationView.Y = Application.GetRealHeight(597 + 5); |
| | | navigationView.Height = Application.GetRealHeight(70 - 5); |
| | | } |
| | |
| | | |
| | | LoadEventList(); |
| | | |
| | | var homePage = new HomePage(); |
| | | ContextView.AddChidren(homePage); |
| | | homePage.LoadPage(); |
| | | //var homePage = new HomePage(); |
| | | //ContextView.AddChidren(homePage); |
| | | //homePage.LoadPage(); |
| | | |
| | | if (!MainPage.NoLoginMode) |
| | | { |
| | | //注册推送ID |
| | | RegisteredPush(); |
| | | //2020-12-07 增加版本检测更新方法 |
| | | HDLCommon.Current.CheckIfNeedForceUpdate(); |
| | | } |
| | | //2020-12-07 增加版本检测更新方法 |
| | | HDLCommon.Current.CheckIfNeedForceUpdate(); |
| | | |
| | | #if __Android__ |
| | | //开启定位服务 |
| | | try |
| | | { |
| | | Shared.Application.StartGPSLocationService(); |
| | | if (DB_ResidenceData.Instance.CheckGPS_IsFirst) |
| | | { |
| | | DB_ResidenceData.Instance.CheckGPS_IsFirst = false; |
| | | Shared.Application.StartGPSLocationService(); |
| | | } |
| | | }catch(Exception ex) |
| | | { |
| | | MainPage.Log("开启定位服务异常:" + ex.Message); |
| | |
| | | { |
| | | btnNavigationSelectionIcon.SetRotation(0f); |
| | | ContextView.RemoveAll(); |
| | | var classificaitionView = new ClassificationPage(); |
| | | var classificaitionView = new ClassificationPage(); |
| | | ContextView.AddChidren(classificaitionView); |
| | | classificaitionView.LoadPage(); |
| | | |
| | | }); |
| | | }) |
| | | { IsBackground = true, Priority = System.Threading.ThreadPriority.Lowest }.Start(); |