| | |
| | | weatherView.btnText.TextID = StringId.tianqibianhua; |
| | | viewLayout.AddChidren(weatherView.FLayoutView()); |
| | | |
| | | //空气质量 |
| | | LogicView.SelectTypeView kongqiViewk = new LogicView.SelectTypeView(); |
| | | kongqiViewk.frameLayout.Y = weatherView.frameLayout.Bottom; |
| | | kongqiViewk.btnIcon.Visible = false; |
| | | kongqiViewk.btnText.X = Application.GetRealWidth(16); |
| | | kongqiViewk.btnLine.X = Application.GetRealWidth(16); |
| | | kongqiViewk.btnLine.Width = Application.GetRealWidth(375 - 16 - 16); |
| | | kongqiViewk.btnText.TextID = StringId.kongqizhiliang; |
| | | viewLayout.AddChidren(kongqiViewk.FLayoutView()); |
| | | #endregion |
| | | |
| | | #region 所有点击事件 |
| | |
| | | weatherCondition.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | | //空气质量 |
| | | kongqiViewk.btnClick.MouseUpEventHandler += (sen, e) => { |
| | | AirQuality airQuality = new AirQuality(); |
| | | MainPage.BasePageView.AddChidren(airQuality); |
| | | airQuality.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | | #endregion |
| | | } |
| | | } |