| | |
| | | #region 场景底部切换显示区域 |
| | | FrameLayout topView; |
| | | /// <summary> |
| | | /// 场景区域,顶部区域 |
| | | /// </summary> |
| | | FrameLayout sceneTopView; |
| | | /// <summary> |
| | | /// 楼层选择下拉图标 |
| | | /// </summary> |
| | | Button btnFloorDownIcon; |
| | |
| | | /// </summary> |
| | | floorChangeView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(52), |
| | | Height = Application.GetRealHeight(53), |
| | | }; |
| | | scenePageView.AddChidren(floorChangeView); |
| | | #region 场景底部切换显示区域 |
| | | /// <summary> |
| | | /// 场景区域,顶部区域 |
| | | /// </summary> |
| | | sceneTopView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(53), |
| | | }; |
| | | floorChangeView.AddChidren(sceneTopView); |
| | | /// <summary> |
| | | /// 楼层选择下拉图标 |
| | | /// </summary> |
| | |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | X = Application.GetRealWidth(16), |
| | | Y = Application.GetRealHeight(18), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Public/DownIcon.png", |
| | | }; |
| | | floorChangeView.AddChidren(btnFloorDownIcon); |
| | |
| | | btnFloor = new Button() |
| | | { |
| | | X = btnFloorDownIcon.Right, |
| | | Y = Application.GetRealHeight(18), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(200), |
| | | Height = Application.GetMinRealAverage(16), |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | |
| | |
|
| | | sceneFunctionView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = floorChangeView.Bottom, |
| | | Y = Application.GetRealHeight(117), |
| | | Height = Application.GetRealHeight(667 - 64 - 49 - 52 + 30), |
| | | }; |
| | | scenePageView.AddChidren(sceneFunctionView); |
| | | bodyView.AddChidren(sceneFunctionView); |
| | | LoadSceneFunctionControlZone(null); |
| | | } |
| | | |
| | |
| | | //} |
| | | if (index % 2 == 0) |
| | | { |
| | | sceneFunctionView.AddChidren(new Button() { Height = Application.GetRealHeight(7) }); |
| | | rowView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealWidth(122), |
| | | }; |
| | | sceneFunctionView.AddChidren(rowView); |
| | | sceneFunctionView.AddChidren(new Button() { Height = Application.GetRealHeight(7) }); |
| | | sceneFunctionView.AddChidren(new Button() |
| | | { |
| | | Height = Application.GetRealHeight(7 + 7), |
| | | }); |
| | | } |
| | | var functionView_X = Application.GetRealWidth((16 + 164) * (index % 2) + 16); |
| | | |