Advertisement
Guest User

description_activity_content

a guest
May 14th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:ads="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:id="@+id/scrollView"
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:background="@drawable/bg_circular_gradient"
  10. android:fillViewport="true"
  11. android:isScrollContainer="true"
  12. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  13.  
  14. <RelativeLayout
  15. android:id="@+id/coordinatorLayout"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content">
  18.  
  19.  
  20. <TextView
  21. android:paddingTop="20dp"
  22. android:paddingLeft="16dp"
  23. android:paddingRight="16dp"
  24. android:paddingBottom="20dp"
  25. android:textColor="@android:color/black"
  26. android:id="@+id/txtPlaceName"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  30. android:textSize="22dp"/>
  31. <TextView
  32. android:background="#efefef"
  33. android:layout_width="match_parent"
  34. android:layout_height="5dp"
  35. android:layout_below="@+id/txtPlaceName"
  36. android:id="@+id/spac"/>
  37. <RelativeLayout
  38. android:layout_below="@+id/spac"
  39. android:id="@+id/relRate"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:background="@android:color/white"
  43. android:paddingBottom="16dp"
  44. android:paddingLeft="16dp"
  45. android:paddingRight="16dp"
  46. android:paddingTop="20dp">
  47.  
  48. <TextView
  49. android:id="@+id/distance"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_alignParentLeft="true"
  53. android:layout_marginEnd="18dp"
  54. android:layout_marginRight="18dp"
  55. android:padding="5dp"
  56. android:gravity="bottom"
  57. android:background="@drawable/bg_dist"
  58. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  59. android:textColor="@color/colorPrimary"
  60. android:textStyle="bold" />
  61.  
  62. <RatingBar
  63. android:id="@+id/ratingBar"
  64. style="?attr/ratingBarStyleSmall"
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:layout_alignBottom="@+id/rateNum"
  68. android:layout_alignParentTop="true"
  69. android:layout_toLeftOf="@+id/rateNum"
  70. android:focusable="false"
  71. android:isIndicator="true"
  72. android:numStars="5"
  73. android:rating="0"
  74. android:stepSize="0.5" />
  75.  
  76. <TextView
  77. android:id="@+id/rateNum"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:layout_marginEnd="18dp"
  81. android:layout_marginRight="18dp"
  82. android:layout_toLeftOf="@+id/totalRate"
  83. android:gravity="bottom"
  84. android:paddingLeft="16dp"
  85. android:text="0.0"
  86. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  87. android:textColor="@color/colorAccent"
  88. android:textStyle="bold" />
  89.  
  90. <TextView
  91. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  92. android:id="@+id/totalRate"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_alignBottom="@+id/rateNum"
  96. android:layout_alignParentRight="true"
  97. android:layout_alignParentTop="true"
  98. android:text="(0)"
  99. android:textColor="@android:color/darker_gray" />
  100. <Button
  101. android:id="@+id/share"
  102. android:layout_width="match_parent"
  103. android:layout_height="44dp"
  104. android:layout_below="@+id/txtCategory"
  105. android:drawableLeft="@drawable/share1"
  106. android:onClick="share"
  107. android:text="SHARE"
  108. android:textSize="15dp"
  109. android:paddingBottom="16dp"
  110. android:layout_marginTop="30dp"
  111.  
  112. android:theme="@style/share" />
  113. <TextView
  114. android:id="@+id/txtCategory"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_below="@+id/ratingBar"
  118. android:layout_marginBottom="10dp"
  119. android:layout_marginTop="20dp"
  120. android:text="@string/description_activity_category"
  121. android:textColor="@color/colorAccent"
  122. android:textSize="18dp"
  123. android:textStyle="bold" />
  124.  
  125. <TextView
  126. android:id="@+id/tvCategory"
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:layout_below="@+id/txtCategory"
  130. android:layout_centerVertical="true"
  131. android:shadowColor="@color/text_shadow"
  132. android:textAppearance="@style/TextAppearance.FontPath"
  133. android:textColor="#434343"
  134. android:textSize="16dp" />
  135.  
  136. </RelativeLayout>
  137.  
  138. <RelativeLayout
  139. android:id="@+id/relDesk"
  140. android:layout_width="match_parent"
  141. android:layout_height="match_parent"
  142. android:layout_below="@+id/relRate"
  143. android:background="#efefef"
  144. android:padding="16dp">
  145.  
  146. <TextView
  147. android:id="@+id/txtDesc"
  148. android:layout_width="wrap_content"
  149. android:layout_height="wrap_content"
  150. android:text="@string/description_activity_description"
  151. android:textColor="@color/colorAccent"
  152. android:textSize="18dp"
  153. android:textStyle="bold" />
  154.  
  155. <WebView
  156. android:id="@+id/tvDescription"
  157. android:layout_width="match_parent"
  158. android:layout_height="match_parent"
  159. android:layout_below="@+id/txtDesc"
  160. android:layout_marginLeft="-7dp"
  161. android:layout_marginRight="-7dp"
  162. android:paddingTop="10dp"
  163. android:autoLink="web"
  164. android:textSize="16dp" />
  165.  
  166. </RelativeLayout>
  167.  
  168. <com.google.android.gms.ads.AdView
  169. android:id="@+id/adViewList"
  170. android:layout_width="wrap_content"
  171. android:layout_height="wrap_content"
  172. android:layout_centerHorizontal="true"
  173. android:layout_below="@+id/relDesk"
  174. ads:adSize="LARGE_BANNER"
  175. ads:adUnitId="@string/banner_ad_unit_id"/>
  176.  
  177. <RelativeLayout
  178. android:id="@+id/relInfo"
  179. android:layout_width="match_parent"
  180. android:layout_height="wrap_content"
  181. android:layout_below="@+id/adViewList"
  182. android:background="@color/colorPrimary"
  183. android:padding="16dp">
  184.  
  185. <TextView
  186. android:id="@+id/txtInf"
  187. android:layout_width="fill_parent"
  188. android:layout_height="wrap_content"
  189. android:text="@string/description_activity_information"
  190. android:textColor="@color/colorAccent"
  191. android:textSize="18dp"
  192. android:textStyle="bold" />
  193.  
  194. <TextView
  195. android:id="@+id/txtAdr"
  196. android:layout_width="match_parent"
  197. android:layout_height="wrap_content"
  198. android:layout_alignParentLeft="true"
  199. android:layout_alignParentStart="true"
  200. android:layout_below="@+id/txtInf"
  201. android:paddingTop="10dp"
  202. android:text="@string/description_activity_address"
  203. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  204. android:textColor="#98a2a3"
  205. android:textSize="14dp"
  206. android:textStyle="bold" />
  207.  
  208. <TextView
  209. android:id="@+id/tvAddress"
  210. android:layout_width="match_parent"
  211. android:layout_height="wrap_content"
  212. android:layout_alignParentLeft="true"
  213. android:layout_alignParentStart="true"
  214. android:layout_below="@+id/txtAdr"
  215. android:paddingTop="5dp"
  216. android:textSize="16dp"
  217. android:textColor="#434343"/>
  218.  
  219. <TextView
  220. android:id="@+id/relInfor"
  221. android:layout_width="match_parent"
  222. android:layout_height="wrap_content"
  223. android:layout_below="@+id/tvAddress"
  224. android:paddingTop="10dp"
  225. android:text="@string/description_activity_website"
  226. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  227. android:textColor="#98a2a3"
  228. android:textSize="14dp"
  229. android:textStyle="bold" />
  230.  
  231. <TextView
  232. android:background="?attr/selectableItemBackgroundBorderless"
  233. android:id="@+id/tvInfor"
  234. android:layout_width="match_parent"
  235. android:layout_height="wrap_content"
  236. android:layout_below="@+id/relInfor"
  237. android:paddingTop="10dp"
  238. android:textSize="16dp"
  239. android:textColor="#434343" />
  240.  
  241. <TextView
  242. android:id="@+id/relPhone"
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:layout_below="@+id/tvInfor"
  246. android:paddingTop="10dp"
  247. android:text="@string/description_activity_phone"
  248. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  249. android:textColor="#98a2a3"
  250. android:textSize="14dp"
  251. android:textStyle="bold" />
  252.  
  253. <TextView
  254. android:id="@+id/tvPhone"
  255. android:background="?attr/selectableItemBackgroundBorderless"
  256. android:layout_width="match_parent"
  257. android:layout_height="wrap_content"
  258. android:layout_below="@+id/relPhone"
  259. android:paddingTop="10dp"
  260. android:textSize="16dp"
  261. android:textColor="#434343" />
  262.  
  263. <TextView
  264. android:id="@+id/txtFas"
  265. android:layout_width="match_parent"
  266. android:layout_height="wrap_content"
  267. android:layout_below="@+id/tvPhone"
  268. android:paddingTop="10dp"
  269. android:text="@string/description_activity_facilities"
  270. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  271. android:textColor="#98a2a3"
  272. android:textSize="14dp"
  273. android:textStyle="bold" />
  274.  
  275. <TextView
  276. android:id="@+id/tvFasilities"
  277. android:layout_width="match_parent"
  278. android:layout_height="wrap_content"
  279. android:layout_below="@+id/txtFas"
  280. android:paddingTop="5dp"
  281. android:textSize="16dp"
  282. android:textColor="#434343" />
  283. </RelativeLayout>
  284.  
  285. <RelativeLayout
  286. android:id="@+id/judul"
  287. android:layout_width="match_parent"
  288. android:layout_height="wrap_content"
  289. android:layout_below="@+id/relInfo"
  290. android:background="@android:color/white">
  291.  
  292. <fragment
  293. android:id="@+id/map"
  294. class="com.google.android.gms.maps.SupportMapFragment"
  295. android:layout_width="match_parent"
  296. android:layout_height="200dp"
  297. app:liteMode="true"
  298. app:cameraZoom="20"/>
  299.  
  300. <TextView
  301. android:background="@drawable/gradient_whit"
  302. android:layout_width="match_parent"
  303. android:layout_height="50dp"/>
  304.  
  305. <ProgressBar
  306. android:id="@+id/progress_view"
  307. android:layout_width="150dp"
  308. android:layout_height="150dp"
  309. android:layout_centerHorizontal="true"
  310. android:padding="50dp"
  311. />
  312.  
  313. <TextView
  314. android:layout_above="@+id/tableLayout2"
  315. android:background="@drawable/gradient_whit2"
  316. android:layout_width="match_parent"
  317. android:layout_height="50dp"/>
  318.  
  319. <TableLayout
  320. android:id="@+id/tableLayout2"
  321. android:layout_width="match_parent"
  322. android:layout_height="wrap_content"
  323. android:layout_below="@+id/map"
  324. android:stretchColumns="0,1">
  325.  
  326. <TableRow>
  327.  
  328. <Button
  329. android:id="@+id/buttonGet"
  330. android:layout_width="wrap_content"
  331. android:layout_height="wrap_content"
  332. android:layout_margin="5dp"
  333. android:text="@string/description_activity_btn_show_direction"
  334. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  335. android:textColor="@android:color/white"
  336. android:textStyle="bold"
  337. android:theme="@style/MyButton2" />
  338.  
  339. <Button
  340. android:id="@+id/buttonShow"
  341. android:layout_width="wrap_content"
  342. android:layout_height="wrap_content"
  343. android:layout_margin="5dp"
  344. android:text="@string/description_activity_btn_show_on_map"
  345. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  346. android:textColor="@android:color/white"
  347. android:textStyle="bold"
  348. android:theme="@style/MyButton2" />
  349. </TableRow>
  350. </TableLayout>
  351.  
  352.  
  353.  
  354. </RelativeLayout>
  355.  
  356. <RelativeLayout
  357. android:id="@+id/relGalery"
  358. android:layout_width="wrap_content"
  359. android:layout_height="wrap_content"
  360. android:layout_below="@+id/judul"
  361. android:background="#efefef"
  362. android:clickable="@bool/ms_rtlEnabled">
  363.  
  364. <TextView
  365. android:id="@+id/txtGaleri"
  366. android:layout_width="wrap_content"
  367. android:layout_height="wrap_content"
  368. android:padding="16dp"
  369. android:paddingBottom="10dp"
  370. android:text="@string/description_activity_image_gallery"
  371. android:textColor="@color/colorAccent"
  372. android:textSize="18dp"
  373. android:textStyle="bold" />
  374.  
  375. <android.support.v7.widget.RecyclerView
  376. android:id="@+id/recycleGallery"
  377. android:layout_width="match_parent"
  378. android:layout_height="wrap_content"
  379. android:layout_below="@+id/txtGaleri"
  380. android:paddingStart="16dp"
  381. android:paddingLeft="16dp"
  382. android:paddingEnd="16dp"
  383. android:paddingRight="16dp"
  384. android:paddingBottom="16dp"
  385. android:scrollbars="horizontal"
  386. android:clickable="false"
  387. android:focusable="false"
  388. android:focusableInTouchMode="false"/>
  389.  
  390. <TextView
  391. android:id="@+id/nogallery"
  392. android:layout_width="match_parent"
  393. android:layout_height="wrap_content"
  394. android:layout_below="@+id/txtGaleri"
  395. android:layout_marginTop="60dp"
  396. android:layout_marginBottom="20dp"
  397. android:gravity="center"
  398. android:text="@string/description_activity_gallery_is_not_found"
  399. android:visibility="gone" />
  400.  
  401. <TableLayout
  402. android:layout_width="match_parent"
  403. android:layout_height="wrap_content"
  404. android:layout_below="@+id/recycleGallery"
  405. android:stretchColumns="0,1"
  406. android:clickable="false"
  407. android:focusable="false"
  408. android:focusableInTouchMode="false">
  409.  
  410. <TableRow>
  411.  
  412. <Button
  413. android:id="@+id/btnUpload"
  414. android:layout_width="wrap_content"
  415. android:layout_height="wrap_content"
  416. android:layout_margin="5dp"
  417. android:text="@string/description_activity_btn_upload_image"
  418. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  419. android:textColor="@android:color/white"
  420. android:textStyle="bold"
  421. android:theme="@style/MyButton2" />
  422.  
  423. <Button
  424. android:id="@+id/btnShowGaleri"
  425. android:layout_width="wrap_content"
  426. android:layout_height="wrap_content"
  427. android:layout_margin="5dp"
  428. android:text="@string/description_activity_btn_show_all_image"
  429. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  430. android:textColor="@android:color/white"
  431. android:textStyle="bold"
  432. android:theme="@style/MyButton2" />
  433.  
  434.  
  435. </TableRow>
  436. </TableLayout>
  437.  
  438. </RelativeLayout>
  439.  
  440. <RelativeLayout
  441. android:id="@+id/relComments"
  442. android:layout_width="match_parent"
  443. android:layout_height="wrap_content"
  444. android:layout_below="@+id/relGalery"
  445. android:background="@android:color/white">
  446.  
  447.  
  448. <TextView
  449. android:id="@+id/txtComments"
  450. android:layout_width="wrap_content"
  451. android:layout_height="wrap_content"
  452. android:padding="16dp"
  453. android:paddingBottom="10dp"
  454. android:text="@string/description_activity_reviews"
  455. android:textColor="@color/colorAccent"
  456. android:textSize="18dp"
  457. android:textStyle="bold" />
  458.  
  459. <TextView
  460.  
  461. android:id="@+id/sp"
  462. android:layout_width="match_parent"
  463. android:layout_height="2dp"
  464. android:layout_below="@+id/txtComments"
  465. android:background="@color/colorAccent" />
  466.  
  467. <android.support.v7.widget.RecyclerView
  468. android:id="@+id/recycleComments"
  469. android:layout_width="match_parent"
  470. android:layout_height="wrap_content"
  471. android:layout_below="@+id/sp"
  472. android:layout_marginBottom="16dp" />
  473.  
  474. <TextView
  475. android:id="@+id/noreview"
  476. android:layout_width="match_parent"
  477. android:layout_height="wrap_content"
  478. android:layout_below="@+id/sp"
  479. android:layout_marginBottom="20dp"
  480. android:layout_marginTop="20dp"
  481. android:gravity="center"
  482. android:text="@string/description_activity_review_is_null"
  483. android:visibility="gone"/>
  484.  
  485. <Button
  486. android:id="@+id/showAllRev"
  487. style="@style/Widget.AppCompat.Button.Borderless"
  488. android:layout_width="wrap_content"
  489. android:layout_height="wrap_content"
  490. android:layout_alignParentEnd="true"
  491. android:layout_alignParentRight="true"
  492. android:layout_alignParentTop="true"
  493. android:layout_marginRight="16dp"
  494. android:text="@string/description_activity_btn_show_all"
  495. android:textSize="18dp"
  496. android:textAllCaps="false"
  497. android:textColor="@color/colorAccent" />
  498.  
  499. </RelativeLayout>
  500.  
  501. <Button
  502. android:id="@+id/btnReport"
  503. android:layout_width="match_parent"
  504. android:layout_below="@+id/relComments"
  505. android:layout_height="wrap_content"
  506. android:layout_margin="5dp"
  507. android:text="@string/description_activity_btn_report"
  508. android:textAppearance="@style/TextAppearance.FontPath.Bold"
  509. android:textColor="@android:color/white"
  510. android:textStyle="bold"
  511. android:theme="@style/MyButton2" />
  512. </RelativeLayout>
  513.  
  514. </android.support.v4.widget.NestedScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement