Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.17 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:background="@color/grey_bg"
  7. android:orientation="vertical">
  8.  
  9. <android.support.v7.widget.CardView
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:layout_marginBottom="@dimen/spacing_medium"
  13. android:layout_marginLeft="@dimen/spacing_middle"
  14. android:layout_marginRight="@dimen/spacing_middle"
  15. android:layout_marginTop="@dimen/spacing_large"
  16. app:cardCornerRadius="@dimen/card_corner_radius"
  17. app:cardElevation="@dimen/elevation_card">
  18.  
  19. <LinearLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:orientation="vertical"
  23. android:padding="@dimen/spacing_medium">
  24.  
  25. <LinearLayout
  26. android:id="@+id/lyt_distance"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:background="?attr/selectableItemBackground"
  30. android:clickable="true"
  31. android:gravity="center_vertical"
  32. android:minHeight="@dimen/spacing_xxlarge"
  33. android:onClick="clickLayout"
  34. android:orientation="horizontal">
  35.  
  36. <ImageView
  37. android:layout_width="@dimen/spacing_mlarge"
  38. android:layout_height="@dimen/spacing_mlarge"
  39. android:layout_margin="@dimen/spacing_middle"
  40. android:src="@drawable/ic_info_distance"
  41. android:tint="@color/grey_hard" />
  42.  
  43. <TextView
  44. android:id="@+id/distance"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:layout_margin="@dimen/spacing_medium"
  48. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  49. android:textColor="@color/material_grey_800" />
  50.  
  51. </LinearLayout>
  52.  
  53. <LinearLayout
  54. android:id="@+id/lyt_address"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:background="?attr/selectableItemBackground"
  58. android:clickable="true"
  59. android:gravity="center_vertical"
  60. android:minHeight="@dimen/spacing_xxlarge"
  61. android:onClick="clickLayout"
  62. android:orientation="horizontal">
  63.  
  64. <ImageView
  65. android:layout_width="@dimen/spacing_mlarge"
  66. android:layout_height="@dimen/spacing_mlarge"
  67. android:layout_margin="@dimen/spacing_middle"
  68. android:src="@drawable/ic_info_address"
  69. android:tint="@color/grey_hard" />
  70.  
  71. <TextView
  72. android:id="@+id/address"
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:layout_margin="@dimen/spacing_medium"
  76. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  77. android:textColor="@color/material_grey_800" />
  78.  
  79. </LinearLayout>
  80.  
  81. <LinearLayout
  82. android:id="@+id/lyt_phone"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:background="?attr/selectableItemBackground"
  86. android:clickable="true"
  87. android:gravity="center_vertical"
  88. android:minHeight="@dimen/spacing_xxlarge"
  89. android:onClick="clickLayout"
  90. android:orientation="horizontal">
  91.  
  92. <ImageView
  93. android:layout_width="@dimen/spacing_mlarge"
  94. android:layout_height="@dimen/spacing_mlarge"
  95. android:layout_margin="@dimen/spacing_middle"
  96. android:src="@drawable/ic_info_phone"
  97. android:tint="@color/grey_hard" />
  98.  
  99. <TextView
  100. android:id="@+id/phone"
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:layout_margin="@dimen/spacing_medium"
  104. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  105. android:textColor="@color/material_grey_800" />
  106.  
  107. </LinearLayout>
  108.  
  109. <LinearLayout
  110. android:id="@+id/lyt_website"
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content"
  113. android:background="?attr/selectableItemBackground"
  114. android:clickable="true"
  115. android:gravity="center_vertical"
  116. android:minHeight="@dimen/spacing_xxlarge"
  117. android:onClick="clickLayout"
  118. android:orientation="horizontal">
  119.  
  120. <ImageView
  121. android:layout_width="@dimen/spacing_mlarge"
  122. android:layout_height="@dimen/spacing_mlarge"
  123. android:layout_margin="@dimen/spacing_middle"
  124. android:src="@drawable/ic_info_web"
  125. android:tint="@color/grey_hard" />
  126.  
  127. <TextView
  128. android:id="@+id/website"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:layout_margin="@dimen/spacing_medium"
  132. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  133. android:textColor="@color/material_grey_800" />
  134.  
  135. </LinearLayout>
  136.  
  137. </LinearLayout>
  138. </android.support.v7.widget.CardView>
  139.  
  140. <android.support.v7.widget.CardView
  141. android:layout_width="match_parent"
  142. android:layout_height="wrap_content"
  143. android:layout_marginBottom="@dimen/spacing_medium"
  144. android:layout_marginLeft="@dimen/spacing_middle"
  145. android:layout_marginRight="@dimen/spacing_middle"
  146. android:layout_marginTop="@dimen/spacing_medium"
  147. app:cardCornerRadius="@dimen/card_corner_radius"
  148. app:cardElevation="@dimen/elevation_card">
  149.  
  150. <LinearLayout
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:orientation="vertical">
  154.  
  155. <TextView
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:fontFamily="sans-serif-light"
  159. android:paddingBottom="@dimen/spacing_medium"
  160. android:paddingLeft="@dimen/spacing_large"
  161. android:paddingRight="@dimen/spacing_large"
  162. android:paddingTop="@dimen/spacing_large"
  163. android:text="@string/photos_title"
  164. android:textAppearance="@style/TextAppearance.AppCompat.Title"
  165. android:textColor="@color/material_grey_800" />
  166.  
  167. <android.support.v7.widget.RecyclerView
  168. android:id="@+id/galleryRecycler"
  169. android:layout_width="match_parent"
  170. android:layout_height="97dp"
  171. android:paddingBottom="@dimen/spacing_large"
  172. android:paddingLeft="@dimen/spacing_large"
  173. android:paddingRight="@dimen/spacing_large" />
  174.  
  175. </LinearLayout>
  176.  
  177. </android.support.v7.widget.CardView>
  178.  
  179. <RelativeLayout
  180. android:id="@+id/banner_layout"
  181. android:layout_width="match_parent"
  182. android:layout_height="wrap_content"
  183. android:layout_marginBottom="@dimen/spacing_medium"
  184. android:layout_marginTop="@dimen/spacing_medium">
  185.  
  186. <include layout="@layout/include_ad_banner" />
  187.  
  188. </RelativeLayout>
  189.  
  190. <android.support.v7.widget.CardView
  191. android:layout_width="match_parent"
  192. android:layout_height="wrap_content"
  193. android:layout_marginBottom="@dimen/spacing_medium"
  194. android:layout_marginLeft="@dimen/spacing_middle"
  195. android:layout_marginRight="@dimen/spacing_middle"
  196. android:layout_marginTop="@dimen/spacing_medium"
  197. app:cardCornerRadius="@dimen/card_corner_radius"
  198. app:cardElevation="@dimen/elevation_card">
  199.  
  200. <LinearLayout
  201. android:layout_width="match_parent"
  202. android:layout_height="wrap_content"
  203. android:orientation="vertical">
  204.  
  205. <TextView
  206. android:layout_width="wrap_content"
  207. android:layout_height="wrap_content"
  208. android:fontFamily="sans-serif-light"
  209. android:padding="@dimen/spacing_large"
  210. android:text="@string/description_title"
  211. android:textAppearance="@style/TextAppearance.AppCompat.Title"
  212. android:textColor="@color/material_grey_800"
  213. android:id="@+id/textView2" />
  214.  
  215. <View
  216. android:layout_width="match_parent"
  217. android:layout_height="1px"
  218. android:layout_marginBottom="@dimen/spacing_small"
  219. android:layout_marginTop="@dimen/spacing_small"
  220. android:background="@color/grey_bg" />
  221.  
  222. <RelativeLayout
  223. android:layout_width="match_parent"
  224. android:layout_height="match_parent"
  225. android:paddingBottom="@dimen/spacing_large"
  226. android:paddingLeft="@dimen/spacing_medium"
  227. android:paddingRight="@dimen/spacing_medium"
  228. android:paddingTop="@dimen/spacing_middle">
  229.  
  230. <WebView
  231. android:id="@+id/description"
  232. android:layout_width="match_parent"
  233. android:layout_height="wrap_content"
  234. android:layout_margin="@dimen/spacing_xsmall" />
  235.  
  236. </RelativeLayout>
  237.  
  238. </LinearLayout>
  239.  
  240. </android.support.v7.widget.CardView>
  241.  
  242. <android.support.v7.widget.CardView
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:layout_marginBottom="@dimen/spacing_large"
  246. android:layout_marginLeft="@dimen/spacing_middle"
  247. android:layout_marginRight="@dimen/spacing_middle"
  248. android:layout_marginTop="@dimen/spacing_medium"
  249. app:cardCornerRadius="@dimen/card_corner_radius"
  250. app:cardElevation="@dimen/elevation_card">
  251.  
  252. <LinearLayout
  253. android:id="@+id/map"
  254. android:layout_width="match_parent"
  255. android:layout_height="wrap_content"
  256. android:background="?attr/selectableItemBackground"
  257. android:clickable="true"
  258. android:orientation="vertical">
  259.  
  260. <TextView
  261. android:layout_width="wrap_content"
  262. android:layout_height="wrap_content"
  263. android:fontFamily="sans-serif-light"
  264. android:padding="@dimen/spacing_large"
  265. android:text="@string/map_title"
  266. android:textAppearance="@style/TextAppearance.AppCompat.Title"
  267. android:textColor="@color/material_grey_800" />
  268.  
  269. <fragment
  270. android:id="@+id/mapPlaces"
  271. android:name="com.google.android.gms.maps.MapFragment"
  272. android:layout_width="match_parent"
  273. android:layout_height="150dp"
  274. android:layout_centerHorizontal="true"
  275. android:layout_centerVertical="true"
  276. android:layout_marginLeft="@dimen/spacing_large"
  277. android:layout_marginRight="@dimen/spacing_large" />
  278.  
  279.  
  280. <LinearLayout
  281. android:id="@+id/the_item"
  282. android:layout_width="match_parent"
  283. android:layout_height="wrap_content"
  284. android:layout_marginRight="@dimen/spacing_large"
  285. android:gravity="right"
  286. android:orientation="horizontal">
  287.  
  288. <Button
  289. android:id="@+id/bt_view"
  290. style="?android:attr/borderlessButtonStyle"
  291. android:layout_width="wrap_content"
  292. android:layout_height="wrap_content"
  293. android:text="@string/map_view"
  294. android:textColor="@color/colorAccent" />
  295.  
  296. <Button
  297. android:id="@+id/bt_navigate"
  298. style="?android:attr/borderlessButtonStyle"
  299. android:layout_width="wrap_content"
  300. android:layout_height="wrap_content"
  301. android:text="@string/map_navigate"
  302. android:textColor="@color/colorAccent" />
  303. </LinearLayout>
  304.  
  305. </LinearLayout>
  306.  
  307. </android.support.v7.widget.CardView>
  308.  
  309. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement