RDSRoomCell.xib 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
  3. <device id="retina6_0" orientation="portrait" appearance="light"/>
  4. <dependencies>
  5. <deployment identifier="iOS"/>
  6. <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
  7. <capability name="Safe area layout guides" minToolsVersion="9.0"/>
  8. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  9. </dependencies>
  10. <objects>
  11. <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
  12. <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
  13. <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="RDSRoomCell">
  14. <rect key="frame" x="0.0" y="0.0" width="170" height="170"/>
  15. <autoresizingMask key="autoresizingMask"/>
  16. <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  17. <rect key="frame" x="0.0" y="0.0" width="170" height="170"/>
  18. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  19. <subviews>
  20. <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DbI-Ub-FRA">
  21. <rect key="frame" x="0.0" y="0.0" width="170" height="170"/>
  22. <subviews>
  23. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="客厅" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Aot-bh-aOC">
  24. <rect key="frame" x="20" y="25" width="37" height="22"/>
  25. <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
  26. <color key="textColor" red="0.15294117647058825" green="0.1803921568627451" blue="0.23137254901960785" alpha="1" colorSpace="calibratedRGB"/>
  27. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  28. </label>
  29. <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hbX-2l-27d">
  30. <rect key="frame" x="108" y="11" width="50" height="50"/>
  31. <constraints>
  32. <constraint firstAttribute="width" constant="50" id="H7M-9E-saU"/>
  33. <constraint firstAttribute="height" constant="50" id="XnE-w9-1Mv"/>
  34. </constraints>
  35. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  36. <state key="normal" image="icon_on"/>
  37. <state key="selected" image="icon_on_sel"/>
  38. </button>
  39. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="15℃" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Q1b-xB-yIB">
  40. <rect key="frame" x="43" y="77" width="36" height="20"/>
  41. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  42. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  43. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  44. </label>
  45. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="59%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xPg-wM-ct3">
  46. <rect key="frame" x="43" y="112" width="34" height="20"/>
  47. <fontDescription key="fontDescription" type="system" pointSize="16"/>
  48. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  49. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  50. </label>
  51. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_temperature" highlightedImage="icon_temperature_w" translatesAutoresizingMaskIntoConstraints="NO" id="Sra-QX-Ywa">
  52. <rect key="frame" x="16" y="75" width="24" height="24"/>
  53. </imageView>
  54. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_humidity" highlightedImage="icon_humidity_w" translatesAutoresizingMaskIntoConstraints="NO" id="X9c-gC-mxz">
  55. <rect key="frame" x="16" y="110" width="24" height="24"/>
  56. </imageView>
  57. <button hidden="YES" opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TMp-xl-bWe">
  58. <rect key="frame" x="108" y="11" width="50" height="50"/>
  59. <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
  60. <state key="normal" image="icon_delete"/>
  61. </button>
  62. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="400" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZXw-hK-Rmy">
  63. <rect key="frame" x="122.33333333333331" y="75.666666666666671" width="29" height="22.666666666666671"/>
  64. <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="16"/>
  65. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  66. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  67. </label>
  68. <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="455" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0yt-r9-7bb">
  69. <rect key="frame" x="122.33333333333331" y="108.66666666666667" width="29" height="22.666666666666671"/>
  70. <fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="16"/>
  71. <color key="textColor" red="0.30588235289999999" green="0.34901960780000002" blue="0.41176470590000003" alpha="1" colorSpace="calibratedRGB"/>
  72. <color key="highlightedColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
  73. </label>
  74. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_pm2.5_off" highlightedImage="icon_pm2.5_on" translatesAutoresizingMaskIntoConstraints="NO" id="1ik-5e-ZJH">
  75. <rect key="frame" x="95.333333333333329" y="76" width="22" height="22"/>
  76. </imageView>
  77. <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_co2_off" highlightedImage="icon_co2_on" translatesAutoresizingMaskIntoConstraints="NO" id="Q89-50-OWS">
  78. <rect key="frame" x="95.333333333333329" y="109" width="22" height="22"/>
  79. </imageView>
  80. </subviews>
  81. <color key="backgroundColor" red="0.94117647058823528" green="0.96078431372549022" blue="0.96470588235294119" alpha="1" colorSpace="calibratedRGB"/>
  82. <constraints>
  83. <constraint firstItem="Q1b-xB-yIB" firstAttribute="leading" secondItem="Sra-QX-Ywa" secondAttribute="trailing" constant="3" id="00t-ac-jt3"/>
  84. <constraint firstItem="Q89-50-OWS" firstAttribute="top" secondItem="1ik-5e-ZJH" secondAttribute="bottom" constant="11" id="5EA-Jw-TAg"/>
  85. <constraint firstItem="hbX-2l-27d" firstAttribute="centerY" secondItem="Aot-bh-aOC" secondAttribute="centerY" id="7Lo-bR-Bte"/>
  86. <constraint firstItem="TMp-xl-bWe" firstAttribute="width" secondItem="hbX-2l-27d" secondAttribute="width" id="Ekq-Xd-xbP"/>
  87. <constraint firstItem="Q89-50-OWS" firstAttribute="centerX" secondItem="1ik-5e-ZJH" secondAttribute="centerX" id="Esp-8c-zSt"/>
  88. <constraint firstItem="0yt-r9-7bb" firstAttribute="leading" secondItem="ZXw-hK-Rmy" secondAttribute="leading" id="Hkh-PW-8Ja"/>
  89. <constraint firstItem="1ik-5e-ZJH" firstAttribute="centerY" secondItem="Sra-QX-Ywa" secondAttribute="centerY" id="KAT-va-DUD"/>
  90. <constraint firstItem="1ik-5e-ZJH" firstAttribute="centerX" secondItem="DbI-Ub-FRA" secondAttribute="centerX" multiplier="1.25" id="L3w-la-qdi"/>
  91. <constraint firstItem="Sra-QX-Ywa" firstAttribute="leading" secondItem="Aot-bh-aOC" secondAttribute="leading" multiplier="0.8" id="L6P-IA-DfR"/>
  92. <constraint firstItem="Q89-50-OWS" firstAttribute="centerY" secondItem="0yt-r9-7bb" secondAttribute="centerY" id="MKU-Es-F07"/>
  93. <constraint firstItem="Q1b-xB-yIB" firstAttribute="centerY" secondItem="Sra-QX-Ywa" secondAttribute="centerY" id="OdG-Sz-vrE"/>
  94. <constraint firstItem="Aot-bh-aOC" firstAttribute="top" secondItem="DbI-Ub-FRA" secondAttribute="top" constant="25" id="Qhp-TD-6LE"/>
  95. <constraint firstItem="TMp-xl-bWe" firstAttribute="height" secondItem="hbX-2l-27d" secondAttribute="height" id="QoS-dO-pK7"/>
  96. <constraint firstItem="X9c-gC-mxz" firstAttribute="centerY" secondItem="xPg-wM-ct3" secondAttribute="centerY" id="Tkg-Eb-9Q0"/>
  97. <constraint firstAttribute="trailing" secondItem="TMp-xl-bWe" secondAttribute="trailing" constant="12" id="Tsx-as-OiD"/>
  98. <constraint firstItem="ZXw-hK-Rmy" firstAttribute="centerY" secondItem="1ik-5e-ZJH" secondAttribute="centerY" id="W0K-WL-hjR"/>
  99. <constraint firstItem="ZXw-hK-Rmy" firstAttribute="leading" secondItem="1ik-5e-ZJH" secondAttribute="trailing" constant="5" id="cVg-b6-xhd"/>
  100. <constraint firstItem="X9c-gC-mxz" firstAttribute="centerX" secondItem="Sra-QX-Ywa" secondAttribute="centerX" id="drl-cP-w05"/>
  101. <constraint firstItem="xPg-wM-ct3" firstAttribute="leading" secondItem="X9c-gC-mxz" secondAttribute="trailing" constant="3" id="eeu-WT-u1H"/>
  102. <constraint firstItem="Aot-bh-aOC" firstAttribute="leading" secondItem="DbI-Ub-FRA" secondAttribute="leading" constant="20" id="gZy-c4-cWK"/>
  103. <constraint firstItem="Sra-QX-Ywa" firstAttribute="top" secondItem="Aot-bh-aOC" secondAttribute="bottom" constant="28" id="jJU-sf-bYi"/>
  104. <constraint firstAttribute="trailing" secondItem="hbX-2l-27d" secondAttribute="trailing" constant="12" id="m5Q-KY-Rtc"/>
  105. <constraint firstItem="X9c-gC-mxz" firstAttribute="top" secondItem="Sra-QX-Ywa" secondAttribute="bottom" constant="11" id="mDt-8U-jmc"/>
  106. <constraint firstItem="TMp-xl-bWe" firstAttribute="centerY" secondItem="Aot-bh-aOC" secondAttribute="centerY" id="ofQ-IT-98w"/>
  107. </constraints>
  108. <userDefinedRuntimeAttributes>
  109. <userDefinedRuntimeAttribute type="string" keyPath="layer.cornerRadius" value="20"/>
  110. <userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
  111. </userDefinedRuntimeAttributes>
  112. </view>
  113. </subviews>
  114. </view>
  115. <viewLayoutGuide key="safeArea" id="SEy-5g-ep8"/>
  116. <constraints>
  117. <constraint firstItem="DbI-Ub-FRA" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="L5M-gK-ZeZ"/>
  118. <constraint firstAttribute="bottom" secondItem="DbI-Ub-FRA" secondAttribute="bottom" id="dx4-5Z-TTd"/>
  119. <constraint firstItem="DbI-Ub-FRA" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="t51-FA-ul1"/>
  120. <constraint firstAttribute="trailing" secondItem="DbI-Ub-FRA" secondAttribute="trailing" id="yFO-E5-08e"/>
  121. </constraints>
  122. <point key="canvasLocation" x="136.92307692307691" y="20.616113744075829"/>
  123. </collectionViewCell>
  124. </objects>
  125. <resources>
  126. <image name="icon_co2_off" width="22" height="22"/>
  127. <image name="icon_co2_on" width="22" height="22"/>
  128. <image name="icon_delete" width="50" height="50"/>
  129. <image name="icon_humidity" width="24" height="24"/>
  130. <image name="icon_humidity_w" width="24" height="24"/>
  131. <image name="icon_on" width="50" height="50"/>
  132. <image name="icon_on_sel" width="50" height="50"/>
  133. <image name="icon_pm2.5_off" width="22" height="22"/>
  134. <image name="icon_pm2.5_on" width="22" height="22"/>
  135. <image name="icon_temperature" width="24" height="24"/>
  136. <image name="icon_temperature_w" width="24" height="24"/>
  137. </resources>
  138. </document>