| | |
| | | Button roomTextButton = new Button(); |
| | | Button devicetypeButton = new Button(); |
| | | VerticalScrolViewLayout middle; |
| | | HorizontalScrolViewLayout devicetypehorizontalScrol1; |
| | | FrameLayout clickframeLayout = new FrameLayout(); |
| | | Button clickbutton = new Button(); |
| | | Button clicktextcolcrbutton = new Button(); |
| | |
| | | this.AddChidren(roomhorizontalScrol); |
| | | |
| | | |
| | | var devicetypehorizontalScrol1 = new HorizontalScrolViewLayout() |
| | | devicetypehorizontalScrol1 = new HorizontalScrolViewLayout() |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 58 - 200), |
| | | Height = Application.GetRealHeight(280), |
| | |
| | | } |
| | | list.Add(device); |
| | | } |
| | | |
| | | if (list.Count == 0) |
| | | { |
| | | devicetypehorizontalScrol.Height = 0; |
| | | devicetypehorizontalScrol1.Height = 0; |
| | | middle.Height = 0; |
| | | } |
| | | else |
| | | { |
| | | devicetypehorizontalScrol.Height = Application.GetRealHeight(280); |
| | | devicetypehorizontalScrol1.Height = Application.GetRealHeight(280); |
| | | middle.Height = Application.GetRealHeight(1920 - 40) - devicetypehorizontalScrol.Bottom; |
| | | } |
| | | AllDeviceTypeView(list, devicetypehorizontalScrol); |
| | | |
| | | } |
| | |
| | | } |
| | | list.Add(device); |
| | | } |
| | | if (list.Count == 0) |
| | | { |
| | | devicetypehorizontalScrol.Height = 0; |
| | | devicetypehorizontalScrol1.Height = 0; |
| | | middle.Height = 0; |
| | | } |
| | | else |
| | | { |
| | | devicetypehorizontalScrol.Height = Application.GetRealHeight(280); |
| | | devicetypehorizontalScrol1.Height = Application.GetRealHeight(280); |
| | | middle.Height = Application.GetRealHeight(1920 - 40) - devicetypehorizontalScrol.Bottom; |
| | | } |
| | | AllDeviceTypeView(list, devicetypehorizontalScrol); |
| | | |
| | | |