Advertisement
Guest User

Untitled

a guest
Jan 10th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.81 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fitsSystemWindows="true"
  8. tools:context="tukutanah.uas.anisashihhatin.com.tukutanah.activity.DetailTanahActivity">
  9.  
  10. <android.support.design.widget.AppBarLayout
  11. android:id="@+id/app_bar_layout"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:fitsSystemWindows="true"
  15. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  16.  
  17. <android.support.design.widget.CollapsingToolbarLayout
  18. android:id="@+id/collapsing_toolbar"
  19. android:layout_width="match_parent"
  20. android:layout_height="350dp"
  21. android:fitsSystemWindows="true"
  22. app:contentScrim="@color/Basic"
  23. app:expandedTitleTextAppearance="@android:color/transparent"
  24. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  25.  
  26. <ImageView
  27. android:id="@+id/detail_image"
  28. android:layout_width="match_parent"
  29. android:layout_height="350dp"
  30. android:layout_marginBottom="8dp"
  31. android:fitsSystemWindows="true"
  32. android:scaleType="centerCrop"
  33. app:layout_collapseMode="parallax" />
  34.  
  35. <android.support.v7.widget.Toolbar
  36. android:id="@+id/toolbar_detail"
  37. android:layout_width="match_parent"
  38. android:layout_height="?attr/actionBarSize"
  39. android:title="Wow"
  40. app:layout_collapseMode="pin"
  41. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
  42. </android.support.design.widget.CollapsingToolbarLayout>
  43. </android.support.design.widget.AppBarLayout>
  44.  
  45. <android.support.v4.widget.NestedScrollView
  46. android:id="@+id/scroll"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:clipToPadding="false"
  50. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  51.  
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="vertical"
  56. android:padding="@dimen/spacing_medium">
  57.  
  58. <LinearLayout
  59. android:id="@+id/lyt_distance"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:background="?attr/selectableItemBackground"
  63. android:clickable="true"
  64. android:gravity="center_vertical"
  65. android:minHeight="@dimen/spacing_xxlarge"
  66. android:onClick="clickLayout"
  67. android:orientation="horizontal">
  68.  
  69. <TextView
  70. android:id="@+id/detail_name"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:layout_margin="@dimen/spacing_medium"
  74. android:textSize="40px"
  75. android:text="Nama"
  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_address"
  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_map"
  97. android:tint="@color/Basic" />
  98.  
  99. <TextView
  100. android:id="@+id/detail_address"
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:layout_margin="@dimen/spacing_medium"
  104. android:text="Jl. Masjid Kuwolu Bululawang Kabupaten Malang"
  105. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  106. android:textColor="@color/material_grey_800" />
  107.  
  108. </LinearLayout>
  109.  
  110. <LinearLayout
  111. android:id="@+id/lyt_phone"
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. android:background="?attr/selectableItemBackground"
  115. android:clickable="true"
  116. android:gravity="center_vertical"
  117. android:minHeight="@dimen/spacing_xxlarge"
  118. android:onClick="clickLayout"
  119. android:orientation="horizontal">
  120.  
  121. <ImageView
  122. android:layout_width="@dimen/spacing_mlarge"
  123. android:layout_height="@dimen/spacing_mlarge"
  124. android:layout_margin="@dimen/spacing_middle"
  125. android:src="@drawable/ic_call" />
  126.  
  127. <TextView
  128. android:id="@+id/detail_phone"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:layout_margin="@dimen/spacing_medium"
  132. android:text="085748132710"
  133. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  134. android:textColor="@color/material_grey_800" />
  135.  
  136. </LinearLayout>
  137.  
  138. <LinearLayout
  139. android:id="@+id/lyt_website"
  140. android:layout_width="match_parent"
  141. android:layout_height="wrap_content"
  142. android:background="?attr/selectableItemBackground"
  143. android:clickable="true"
  144. android:gravity="center_vertical"
  145. android:minHeight="@dimen/spacing_xxlarge"
  146. android:onClick="clickLayout"
  147. android:orientation="horizontal">
  148.  
  149. <ImageView
  150. android:layout_width="@dimen/spacing_mlarge"
  151. android:layout_height="@dimen/spacing_mlarge"
  152. android:layout_margin="@dimen/spacing_middle"
  153. android:src="@drawable/ic_dollar" />
  154.  
  155. <TextView
  156. android:id="@+id/detail_price"
  157. android:layout_width="match_parent"
  158. android:layout_height="wrap_content"
  159. android:layout_margin="@dimen/spacing_medium"
  160. android:text="150.000.000"
  161. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  162. android:textColor="@color/material_grey_800" />
  163.  
  164. </LinearLayout>
  165.  
  166. <TextView
  167. android:id="@+id/detail_large"
  168. android:layout_width="match_parent"
  169. android:layout_height="wrap_content"
  170. android:layout_margin="@dimen/spacing_medium"
  171. android:text="100/m2"
  172. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  173. android:textColor="@color/material_grey_800" />
  174.  
  175. <TextView
  176. android:id="@+id/detail_city"
  177. android:layout_width="match_parent"
  178. android:layout_height="wrap_content"
  179. android:layout_margin="@dimen/spacing_medium"
  180. android:text="Malang"
  181. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  182. android:textColor="@color/material_grey_800" />
  183.  
  184. <TextView
  185. android:id="@+id/detail_district"
  186. android:layout_width="match_parent"
  187. android:layout_height="wrap_content"
  188. android:layout_margin="@dimen/spacing_medium"
  189. android:text="Turen"
  190. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  191. android:textColor="@color/material_grey_800" />
  192.  
  193. <TextView
  194. android:id="@+id/detail_sert"
  195. android:layout_width="match_parent"
  196. android:layout_height="wrap_content"
  197. android:layout_margin="@dimen/spacing_medium"
  198. android:text="SHM"
  199. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  200. android:textColor="@color/material_grey_800" />
  201.  
  202. </LinearLayout>
  203.  
  204. <LinearLayout
  205. android:layout_width="match_parent"
  206. android:layout_height="wrap_content"
  207. android:orientation="vertical">
  208.  
  209. <TextView
  210. android:layout_width="match_parent"
  211. android:layout_height="wrap_content"
  212. android:fontFamily="sans-serif-light"
  213. android:padding="@dimen/spacing_large"
  214. android:text="Deskripsi"
  215. android:textAppearance="@style/TextAppearance.AppCompat.Title"
  216. android:textColor="@color/material_grey_800"
  217. android:id="@+id/textView2" />
  218.  
  219. <TextView
  220. android:id="@+id/detail_desc"
  221. android:layout_width="match_parent"
  222. android:layout_height="wrap_content"
  223. android:layout_margin="@dimen/spacing_medium"
  224. android:text="@string/lorem"
  225. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  226. android:textColor="@color/material_grey_800" />
  227.  
  228.  
  229. </LinearLayout>
  230.  
  231. <LinearLayout
  232. android:id="@+id/map"
  233. android:layout_width="match_parent"
  234. android:layout_height="wrap_content"
  235. android:background="?attr/selectableItemBackground"
  236. android:clickable="true"
  237. android:orientation="vertical">
  238.  
  239. <TextView
  240. android:layout_width="match_parent"
  241. android:layout_height="wrap_content"
  242. android:fontFamily="sans-serif-light"
  243. android:padding="@dimen/spacing_large"
  244. android:text="Map"
  245. android:textAppearance="@style/TextAppearance.AppCompat.Title"
  246. android:textColor="@color/material_grey_800" />
  247.  
  248. <fragment
  249. android:id="@+id/mapPlaces"
  250. android:name="com.google.android.gms.maps.MapFragment"
  251. android:layout_width="match_parent"
  252. android:layout_height="200dp"
  253. android:layout_centerHorizontal="true"
  254. android:layout_centerVertical="true"
  255. android:layout_marginBottom="20dp"
  256. android:layout_marginLeft="@dimen/spacing_large"
  257. android:layout_marginRight="@dimen/spacing_large" />
  258.  
  259. </LinearLayout>
  260.  
  261. <android.support.v7.widget.RecyclerView
  262. android:id="@+id/recyclerview_comment"
  263. android:layout_width="match_parent"
  264. android:layout_height="wrap_content"
  265. android:layout_marginTop="10px">
  266.  
  267. </android.support.v7.widget.RecyclerView>
  268.  
  269. </android.support.v4.widget.NestedScrollView>
  270. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement