ability_main.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <StackLayout
  3. xmlns:ohos="http://schemas.huawei.com/res/ohos"
  4. ohos:height="match_parent"
  5. ohos:width="match_parent"
  6. ohos:orientation="horizontal">
  7. <PositionLayout
  8. xmlns:ohos="http://schemas.huawei.com/res/ohos"
  9. ohos:id="$+id:main_body"
  10. ohos:height="match_parent"
  11. ohos:width="match_parent">
  12. </PositionLayout>
  13. <!-- 主内容区域 - 垂直布局 -->
  14. <DirectionalLayout
  15. ohos:margin="5vp"
  16. ohos:id="$+id:main_content"
  17. ohos:height="match_parent"
  18. ohos:width="400vp"
  19. ohos:background_element="#FFFFFFFF"
  20. ohos:orientation="vertical">
  21. <DirectionalLayout
  22. ohos:id="$+id:header_bar"
  23. ohos:height="56vp"
  24. ohos:width="match_parent"
  25. ohos:alignment="left"
  26. ohos:background_element="$graphic:container_top"
  27. ohos:end_padding="16vp"
  28. ohos:orientation="horizontal"
  29. ohos:start_padding="16vp">
  30. <DirectionalLayout
  31. ohos:layout_alignment="center"
  32. ohos:height="match_content"
  33. ohos:width="match_content"
  34. ohos:alignment="center"
  35. ohos:orientation="horizontal">
  36. <!-- P图标圆圈 -->
  37. <Text
  38. ohos:id="$+id:icon_parking"
  39. ohos:height="22vp"
  40. ohos:width="22vp"
  41. ohos:background_element="$graphic:background_circle_16"
  42. ohos:end_margin="8vp"
  43. ohos:text="P"
  44. ohos:text_alignment="center"
  45. ohos:text_color="#FA6332"
  46. ohos:text_size="18fp"/>
  47. <!-- 标题文字 -->
  48. <Text
  49. ohos:id="$+id:title_text"
  50. ohos:height="match_content"
  51. ohos:width="match_content"
  52. ohos:text="爱泊客 - 停车缴费"
  53. ohos:text_color="#FFFFFFFF"
  54. ohos:text_size="18fp"/>
  55. </DirectionalLayout>
  56. </DirectionalLayout>
  57. <!-- 页面滑动容器 -->
  58. <DirectionalLayout
  59. ohos:height="0vp"
  60. ohos:width="match_parent"
  61. ohos:background_element="$graphic:container_body"
  62. ohos:left_padding="1vp"
  63. ohos:right_padding="1vp"
  64. ohos:weight="1">
  65. <PageSlider
  66. ohos:id="$+id:page_slider"
  67. ohos:height="match_parent"
  68. ohos:width="match_parent"/>
  69. </DirectionalLayout>
  70. <!-- 底部导航栏 -->
  71. <DirectionalLayout
  72. ohos:height="64vp"
  73. ohos:width="match_parent">
  74. <DirectionalLayout
  75. ohos:top_margin="-1vp"
  76. ohos:height="64vp"
  77. ohos:width="match_parent"
  78. ohos:background_element="$graphic:container_bottom"
  79. ohos:bottom_padding="8vp"
  80. ohos:orientation="horizontal"
  81. ohos:top_padding="8vp">
  82. <!-- 我的 -->
  83. <DirectionalLayout
  84. ohos:id="$+id:nav_my"
  85. ohos:height="match_parent"
  86. ohos:width="0vp"
  87. ohos:alignment="center"
  88. ohos:orientation="vertical"
  89. ohos:weight="1">
  90. <Image
  91. ohos:id="$+id:icon_my"
  92. ohos:height="24vp"
  93. ohos:width="24vp"
  94. ohos:scale_mode="stretch"
  95. ohos:bottom_margin="4vp"
  96. ohos:image_src="$media:my"/>
  97. <Image
  98. ohos:id="$+id:icon_my_1"
  99. ohos:height="24vp"
  100. ohos:width="24vp"
  101. ohos:scale_mode="stretch"
  102. ohos:bottom_margin="4vp"
  103. ohos:visibility="hide"
  104. ohos:image_src="$media:my_1"/>
  105. <Text
  106. ohos:id="$+id:text_my"
  107. ohos:height="match_content"
  108. ohos:width="match_content"
  109. ohos:text="我的"
  110. ohos:text_color="#FF666666"
  111. ohos:text_size="12fp"/>
  112. </DirectionalLayout>
  113. <!-- 找车位 -->
  114. <DirectionalLayout
  115. ohos:id="$+id:nav_find_parking"
  116. ohos:height="match_parent"
  117. ohos:width="0vp"
  118. ohos:alignment="center"
  119. ohos:orientation="vertical"
  120. ohos:weight="1">
  121. <Image
  122. ohos:id="$+id:icon_park"
  123. ohos:height="24vp"
  124. ohos:width="24vp"
  125. ohos:scale_mode="stretch"
  126. ohos:bottom_margin="4vp"
  127. ohos:visibility="hide"
  128. ohos:image_src="$media:park"/>
  129. <Image
  130. ohos:id="$+id:icon_park_1"
  131. ohos:height="24vp"
  132. ohos:width="24vp"
  133. ohos:scale_mode="stretch"
  134. ohos:bottom_margin="4vp"
  135. ohos:image_src="$media:park_1"/>
  136. <Text
  137. ohos:id="$+id:text_park"
  138. ohos:height="match_content"
  139. ohos:width="match_content"
  140. ohos:text="找车位"
  141. ohos:text_color="#FA6332"
  142. ohos:text_size="12fp"/>
  143. </DirectionalLayout>
  144. <!-- 预约停车 -->
  145. <DirectionalLayout
  146. ohos:id="$+id:nav_reserve_parking"
  147. ohos:height="match_parent"
  148. ohos:width="0vp"
  149. ohos:alignment="center"
  150. ohos:orientation="vertical"
  151. ohos:weight="1">
  152. <Image
  153. ohos:id="$+id:icon_fee"
  154. ohos:scale_mode="stretch"
  155. ohos:height="24vp"
  156. ohos:width="24vp"
  157. ohos:bottom_margin="4vp"
  158. ohos:image_src="$media:fee"/>
  159. <Image
  160. ohos:id="$+id:icon_fee_1"
  161. ohos:scale_mode="stretch"
  162. ohos:height="24vp"
  163. ohos:width="24vp"
  164. ohos:bottom_margin="4vp"
  165. ohos:visibility="hide"
  166. ohos:image_src="$media:fee_1"/>
  167. <Text
  168. ohos:id="$+id:text_fee"
  169. ohos:height="match_content"
  170. ohos:width="match_content"
  171. ohos:text="预约停车"
  172. ohos:text_color="#FF666666"
  173. ohos:text_size="12fp"/>
  174. </DirectionalLayout>
  175. <!-- 当前位置 -->
  176. <DirectionalLayout
  177. ohos:id="$+id:nav_current_location"
  178. ohos:height="match_parent"
  179. ohos:width="0vp"
  180. ohos:alignment="center"
  181. ohos:orientation="vertical"
  182. ohos:weight="1">
  183. <Image
  184. ohos:id="$+id:icon_current_location"
  185. ohos:scale_mode="stretch"
  186. ohos:height="24vp"
  187. ohos:width="24vp"
  188. ohos:bottom_margin="4vp"
  189. ohos:image_src="$media:location"/>
  190. <Text
  191. ohos:id="$+id:text_current_location"
  192. ohos:height="match_content"
  193. ohos:width="match_content"
  194. ohos:text="当前位置"
  195. ohos:text_color="#FF666666"
  196. ohos:text_size="12fp"/>
  197. </DirectionalLayout>
  198. </DirectionalLayout>
  199. </DirectionalLayout>
  200. </DirectionalLayout>
  201. </StackLayout>