| | |
| | | FrameLayout clickframeLayout = new FrameLayout(); |
| | | Button clickbutton = new Button(); |
| | | Button clicktextcolcrbutton = new Button(); |
| | | HorizontalScrolViewLayout devicetypehorizontalScrol1; |
| | | public void Show() |
| | | { |
| | | |
| | |
| | | ///没有房间直接返回去; |
| | | if (Common.Room.Lists.Count == 0) |
| | | { |
| | | return; |
| | | return; |
| | | } |
| | | ///房间滑动控件 |
| | | var roomhorizontalScrol = new HorizontalScrolViewLayout() |
| | |
| | | }; |
| | | 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); |
| | | |
| | | |