| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = OnAppConfig.Instance.CurFoor, |
| | | Text = DB_ResidenceData.residenceData.CurFoor, |
| | | }; |
| | | roomFloorChangeView.AddChidren(btnFloor); |
| | | /// <summary> |
| | |
| | | Y = Application.GetRealHeight(16), |
| | | Height = Application.GetRealHeight(667 - 64 - 49 + 20), |
| | | }; |
| | | |
| | | if (DB_ResidenceData.residenceData.functionTypeList.Count > 4) |
| | | { |
| | | functionContentView.Height += Application.GetRealHeight((220 * (DB_ResidenceData.residenceData.functionTypeList.Count - 4 - 2) / 2) + 20); |
| | | } |
| | | functionsPageView.AddChidren(functionContentView); |
| | | |
| | | |
| | | int index = 0; |
| | | List<int> specialList = new List<int>() { 1, 2, 5, 6, 9, 10, 13, 14, 17, 18, 21, 22 }; |
| | |
| | | var lastY1 = Application.GetRealWidth(16); |
| | | var lastY2 = Application.GetRealWidth(16); |
| | | |
| | | var functionCategoryCount = 0; |
| | | |
| | | foreach (var item in DB_ResidenceData.residenceData.functionTypeList) |
| | | { |
| | | |
| | | int functionCount = 0; |
| | | int functionOnCount = 0; |
| | | switch (item) |
| | |
| | | { |
| | | continue; |
| | | } |
| | | functionCategoryCount++; |
| | | |
| | | FrameLayout functionView = new FrameLayout() |
| | | { |
| | |
| | | } |
| | | index++; |
| | | } |
| | | |
| | | if (functionCategoryCount> 4) |
| | | { |
| | | functionContentView.Height += Application.GetRealHeight((220 * (functionCategoryCount - 4 - 2) / 2) + 20); |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | |