| | |
| | | |
| | | var contentView = new VerticalScrolViewLayout() { |
| | | X = Application.GetRealWidth(8), |
| | | Y = Application.GetRealHeight(16), |
| | | Width = Application.GetRealWidth(144), |
| | | Height = Application.GetRealHeight(45*4), |
| | | Y = Application.GetRealHeight(10), |
| | | Width = Application.GetRealWidth(150), |
| | | Height = Application.GetRealHeight(44*4), |
| | | }; |
| | | dispalyView.AddChidren(contentView); |
| | | |
| | |
| | | Width = Application.GetRealWidth(112), |
| | | Height = Application.GetRealHeight(44), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = UI.CSS.CSS_Color.MainBackgroundColor, |
| | | SelectedTextColor = UI.CSS.CSS_Color.MainColor, |
| | | TextColor = CSS.CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS.CSS_Color.MainColor, |
| | | Text = home.Name, |
| | | TextSize = UI.CSS.CSS_FontSize.SubheadingFontSize, |
| | | TextSize = CSS.CSS_FontSize.SubheadingFontSize, |
| | | IsSelected = UserConfig.Instance.CurrentRegion.RegionID == home.RegionID, |
| | | IsMoreLines = true, |
| | | Tag = home |
| | | }; |
| | | contentView.AddChidren(btnHomeName); |
| | | var btnContentLine = new Button() |
| | | |
| | | if (MainPage.LoginUser.HomeLists.IndexOf(home) < MainPage.LoginUser.HomeLists.Count - 1) |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(112), |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = UI.CSS.CSS_Color.SecondLevelTitleColor |
| | | }; |
| | | contentView.AddChidren(btnContentLine); |
| | | contentView.AddChidren(new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(112), |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = CSS.CSS_Color.BackgroundColor |
| | | }); |
| | | } |
| | | |
| | | btnHomeName.MouseUpEventHandler += (senderH, en) => |
| | | { |