fragment_layout_home.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. <com.ivalentin.margolariak.CustomScrollView
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:id="@+id/sh_home_layout"
  5. android:layout_width="fill_parent"
  6. android:layout_height="wrap_content" >
  7. <LinearLayout
  8. android:layout_width="fill_parent"
  9. android:layout_height="wrap_content"
  10. android:orientation="vertical">
  11. <LinearLayout
  12. android:id="@+id/ll_home_section_location"
  13. android:layout_width="fill_parent"
  14. android:layout_height="wrap_content"
  15. android:orientation="vertical"
  16. android:background="@drawable/section"
  17. android:layout_margin="7dp"
  18. android:padding="7dp"
  19. android:visibility="gone">
  20. <TextView
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:text="@string/home_section_location"
  24. android:textAppearance="?android:attr/textAppearanceLarge"
  25. android:textStyle="bold"/>
  26. <LinearLayout
  27. android:id="@+id/ll_home_section_location_content"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:layout_margin="10dp"
  31. android:orientation="vertical"
  32. android:background="@drawable/entry"
  33. android:padding="7dp">
  34. <TextView
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:textAppearance="@android:style/TextAppearance.Medium"
  38. android:text="@string/home_section_location_text_0"
  39. android:id="@+id/textView9"/>
  40. <LinearLayout
  41. android:orientation="horizontal"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. android:gravity="center_horizontal"
  45. android:layout_marginTop="10dp"
  46. android:layout_marginBottom="10dp"
  47. tools:ignore="UseCompoundDrawables">
  48. <ImageView
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:contentDescription="@string/app_cdesc"
  52. android:src="@drawable/pinpoint_gm"
  53. android:layout_margin="7dp"
  54. android:layout_gravity="center_vertical"/>
  55. <TextView
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:textAppearance="@android:style/TextAppearance.Medium"
  59. android:text="@string/home_section_location_text_calculating"
  60. android:id="@+id/tv_home_section_location_distance"
  61. android:layout_gravity="center_vertical"
  62. android:layout_margin="7dp"/>
  63. </LinearLayout>
  64. </LinearLayout>
  65. </LinearLayout>
  66. <LinearLayout
  67. android:orientation="vertical"
  68. android:layout_width="match_parent"
  69. android:layout_height="match_parent"
  70. android:background="@drawable/section"
  71. android:padding="7dp"
  72. android:id="@+id/ll_home_section_lablanca"
  73. android:layout_margin="7dp"
  74. android:visibility="gone">
  75. <TextView
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:textAppearance="?android:attr/textAppearanceLarge"
  79. android:text="@string/lablanca_title"
  80. android:id="@+id/textView4"
  81. android:textStyle="bold"/>
  82. <LinearLayout
  83. android:orientation="horizontal"
  84. android:layout_width="match_parent"
  85. android:layout_height="match_parent"
  86. android:background="@drawable/entry"
  87. android:padding="7dp">
  88. <ImageView
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:id="@+id/iv_home_section_lablanca_image"
  92. android:contentDescription="@string/app_cdesc"
  93. android:layout_weight=".4"
  94. android:layout_margin="3dp"
  95. android:background="@color/album_border"
  96. android:padding="1dp"/>
  97. <TextView
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:textAppearance="@android:style/TextAppearance.Medium"
  101. android:id="@+id/tv_home_section_lablanca_text"
  102. android:layout_weight=".6"
  103. android:padding="7dp"
  104. android:maxLines="4"
  105. android:ellipsize="end"/>
  106. </LinearLayout>
  107. </LinearLayout>
  108. <LinearLayout
  109. android:id="@+id/ll_home_section_gmschedule"
  110. android:layout_width="fill_parent"
  111. android:layout_height="wrap_content"
  112. android:orientation="vertical"
  113. android:background="@drawable/section"
  114. android:layout_margin="7dp"
  115. android:padding="7dp"
  116. android:visibility="gone">
  117. <TextView
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:text="@string/home_section_gmschedule"
  121. android:textAppearance="?android:attr/textAppearanceLarge"
  122. android:layout_marginBottom="10dp"
  123. android:textStyle="bold"/>
  124. <LinearLayout
  125. android:orientation="vertical"
  126. android:layout_width="match_parent"
  127. android:layout_height="match_parent"
  128. android:background="@drawable/entry"
  129. android:id="@+id/ll_home_section_gmschedule_now_content"
  130. android:padding="7dp"
  131. android:layout_margin="10dp">
  132. <TextView
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:textAppearance="@android:style/TextAppearance.Medium"
  136. android:text="@string/schedule_now"
  137. />
  138. <LinearLayout
  139. android:id="@+id/ll_home_section_gmschedule_now_list"
  140. android:layout_width="match_parent"
  141. android:layout_height="wrap_content"
  142. android:orientation="vertical"
  143. android:padding="7dp">
  144. </LinearLayout>
  145. </LinearLayout>
  146. <LinearLayout
  147. android:orientation="vertical"
  148. android:layout_width="match_parent"
  149. android:layout_height="match_parent"
  150. android:background="@drawable/entry"
  151. android:id="@+id/ll_home_section_gmschedule_later_content"
  152. android:padding="7dp"
  153. android:layout_margin="10dp">
  154. <TextView
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. android:textAppearance="@android:style/TextAppearance.Medium"
  158. android:text="@string/schedule_later"
  159. />
  160. <LinearLayout
  161. android:id="@+id/ll_home_section_gmschedule_later_list"
  162. android:layout_width="match_parent"
  163. android:layout_height="wrap_content"
  164. android:orientation="vertical"
  165. android:padding="7dp">
  166. </LinearLayout>
  167. </LinearLayout>
  168. </LinearLayout>
  169. <LinearLayout
  170. android:id="@+id/ll_home_section_cityschedule"
  171. android:layout_width="fill_parent"
  172. android:layout_height="wrap_content"
  173. android:orientation="vertical"
  174. android:background="@drawable/section"
  175. android:layout_margin="7dp"
  176. android:padding="7dp"
  177. android:visibility="gone">
  178. <TextView
  179. android:layout_width="wrap_content"
  180. android:layout_height="wrap_content"
  181. android:text="@string/home_section_cityschedule"
  182. android:textAppearance="?android:attr/textAppearanceLarge"
  183. android:layout_marginBottom="10dp"
  184. android:textStyle="bold"/>
  185. <LinearLayout
  186. android:orientation="vertical"
  187. android:layout_width="match_parent"
  188. android:layout_height="match_parent"
  189. android:background="@drawable/entry"
  190. android:id="@+id/ll_home_section_cityschedule_now_content"
  191. android:padding="7dp"
  192. android:layout_margin="10dp">
  193. <TextView
  194. android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:textAppearance="@android:style/TextAppearance.Medium"
  197. android:text="@string/schedule_now"
  198. />
  199. <LinearLayout
  200. android:id="@+id/ll_home_section_cityschedule_now_list"
  201. android:layout_width="match_parent"
  202. android:layout_height="wrap_content"
  203. android:orientation="vertical"
  204. android:padding="7dp">
  205. </LinearLayout>
  206. </LinearLayout>
  207. <LinearLayout
  208. android:orientation="vertical"
  209. android:layout_width="match_parent"
  210. android:layout_height="match_parent"
  211. android:background="@drawable/entry"
  212. android:id="@+id/ll_home_section_cityschedule_later_content"
  213. android:padding="7dp"
  214. android:layout_margin="10dp">
  215. <TextView
  216. android:layout_width="wrap_content"
  217. android:layout_height="wrap_content"
  218. android:textAppearance="@android:style/TextAppearance.Medium"
  219. android:text="@string/schedule_later"
  220. />
  221. <LinearLayout
  222. android:id="@+id/ll_home_section_cityschedule_later_list"
  223. android:layout_width="match_parent"
  224. android:layout_height="wrap_content"
  225. android:orientation="vertical"
  226. android:padding="7dp">
  227. </LinearLayout>
  228. </LinearLayout>
  229. </LinearLayout>
  230. <LinearLayout
  231. android:id="@+id/ll_home_section_around"
  232. android:layout_width="fill_parent"
  233. android:layout_height="wrap_content"
  234. android:orientation="vertical"
  235. android:background="@drawable/section"
  236. android:layout_margin="7dp"
  237. android:padding="7dp"
  238. android:visibility="gone">
  239. <TextView
  240. android:layout_width="wrap_content"
  241. android:layout_height="wrap_content"
  242. android:text="@string/home_section_around"
  243. android:textAppearance="?android:attr/textAppearanceLarge"
  244. android:textStyle="bold"/>
  245. <LinearLayout
  246. android:id="@+id/ll_home_section_around_content"
  247. android:layout_width="match_parent"
  248. android:layout_height="wrap_content"
  249. android:layout_margin="10dp"
  250. android:orientation="vertical"
  251. android:background="@drawable/entry"
  252. android:padding="7dp">
  253. </LinearLayout>
  254. </LinearLayout>
  255. <LinearLayout
  256. android:id="@+id/ll_home_section_activities_future"
  257. android:layout_width="fill_parent"
  258. android:layout_height="wrap_content"
  259. android:orientation="vertical"
  260. android:background="@drawable/section"
  261. android:layout_margin="7dp"
  262. android:padding="7dp"
  263. android:visibility="gone">
  264. <TextView
  265. android:layout_width="wrap_content"
  266. android:layout_height="wrap_content"
  267. android:text="@string/home_section_activities_future"
  268. android:textAppearance="?android:attr/textAppearanceLarge"
  269. android:textStyle="bold"/>
  270. <LinearLayout
  271. android:id="@+id/ll_home_section_activities_future_content"
  272. android:layout_width="match_parent"
  273. android:layout_height="wrap_content"
  274. android:layout_margin="10dp"
  275. android:orientation="vertical">
  276. </LinearLayout>
  277. </LinearLayout>
  278. <LinearLayout
  279. android:id="@+id/ll_home_section_blog"
  280. android:layout_width="fill_parent"
  281. android:layout_height="wrap_content"
  282. android:orientation="vertical"
  283. android:background="@drawable/section"
  284. android:layout_margin="7dp"
  285. android:padding="7dp">
  286. <TextView
  287. android:layout_width="wrap_content"
  288. android:layout_height="wrap_content"
  289. android:text="@string/home_section_blog"
  290. android:textAppearance="?android:attr/textAppearanceLarge"
  291. android:textStyle="bold"/>
  292. <LinearLayout
  293. android:id="@+id/ll_home_section_blog_content"
  294. android:layout_width="match_parent"
  295. android:layout_height="wrap_content"
  296. android:layout_margin="10dp"
  297. android:orientation="vertical">
  298. </LinearLayout>
  299. </LinearLayout>
  300. <LinearLayout
  301. android:id="@+id/ll_home_section_gallery"
  302. android:layout_width="fill_parent"
  303. android:layout_height="wrap_content"
  304. android:orientation="vertical"
  305. android:background="@drawable/section"
  306. android:layout_margin="7dp"
  307. android:padding="7dp">
  308. <TextView
  309. android:layout_width="wrap_content"
  310. android:layout_height="wrap_content"
  311. android:text="@string/home_section_gallery"
  312. android:textAppearance="?android:attr/textAppearanceLarge"
  313. android:textStyle="bold"/>
  314. <LinearLayout
  315. android:id="@+id/ll_home_section_gallery_content"
  316. android:layout_width="match_parent"
  317. android:layout_height="wrap_content"
  318. android:layout_margin="10dp"
  319. android:orientation="vertical"
  320. android:background="@drawable/entry"
  321. android:padding="7dp">
  322. <LinearLayout
  323. android:baselineAligned="true"
  324. android:orientation="horizontal"
  325. android:layout_width="match_parent"
  326. android:layout_height="match_parent">
  327. <LinearLayout
  328. android:orientation="horizontal"
  329. android:layout_width="fill_parent"
  330. android:layout_height="match_parent"
  331. android:layout_weight=".5"
  332. android:gravity="center_vertical|center_horizontal">
  333. <ImageView
  334. android:layout_width="wrap_content"
  335. android:layout_height="wrap_content"
  336. android:id="@+id/iv_home_section_gallery_0"
  337. android:contentDescription="@string/app_cdesc"
  338. android:layout_margin="7dp"
  339. android:padding="1dp"
  340. android:background="@color/album_border"
  341. android:adjustViewBounds="true"
  342. />
  343. </LinearLayout>
  344. <LinearLayout
  345. android:orientation="horizontal"
  346. android:layout_width="fill_parent"
  347. android:layout_height="match_parent"
  348. android:layout_weight=".5"
  349. android:gravity="center_vertical|center_horizontal">
  350. <ImageView
  351. android:layout_width="wrap_content"
  352. android:layout_height="wrap_content"
  353. android:id="@+id/iv_home_section_gallery_1"
  354. android:contentDescription="@string/app_cdesc"
  355. android:layout_margin="7dp"
  356. android:background="@color/album_border"
  357. android:padding="1dp"
  358. android:adjustViewBounds="true"
  359. />
  360. </LinearLayout>
  361. </LinearLayout>
  362. <LinearLayout
  363. android:baselineAligned="false"
  364. android:orientation="horizontal"
  365. android:layout_width="match_parent"
  366. android:layout_height="match_parent" >
  367. <LinearLayout
  368. android:orientation="horizontal"
  369. android:layout_width="fill_parent"
  370. android:layout_height="match_parent"
  371. android:layout_weight=".5"
  372. android:gravity="center_vertical|center_horizontal">
  373. <ImageView
  374. android:layout_width="wrap_content"
  375. android:layout_height="wrap_content"
  376. android:id="@+id/iv_home_section_gallery_2"
  377. android:contentDescription="@string/app_cdesc"
  378. android:layout_margin="7dp"
  379. android:padding="1dp"
  380. android:background="@color/album_border"
  381. android:adjustViewBounds="true"
  382. />
  383. </LinearLayout>
  384. <LinearLayout
  385. android:orientation="horizontal"
  386. android:layout_width="fill_parent"
  387. android:layout_height="match_parent"
  388. android:layout_weight=".5"
  389. android:gravity="center_vertical|center_horizontal">
  390. <ImageView
  391. android:layout_width="wrap_content"
  392. android:layout_height="wrap_content"
  393. android:id="@+id/iv_home_section_gallery_3"
  394. android:contentDescription="@string/app_cdesc"
  395. android:layout_margin="7dp"
  396. android:background="@color/album_border"
  397. android:padding="1dp"
  398. android:adjustViewBounds="true"
  399. />
  400. </LinearLayout>
  401. </LinearLayout>
  402. <TextView
  403. android:layout_width="wrap_content"
  404. android:layout_height="wrap_content"
  405. android:textAppearance="?android:attr/textAppearanceMedium"
  406. android:text="Medium Text"
  407. android:id="@+id/tv_home_section_gallery_hidden_0"
  408. android:visibility="gone" />
  409. <TextView
  410. android:layout_width="wrap_content"
  411. android:layout_height="wrap_content"
  412. android:textAppearance="?android:attr/textAppearanceMedium"
  413. android:text="Medium Text"
  414. android:id="@+id/tv_home_section_gallery_hidden_1"
  415. android:visibility="gone" />
  416. <TextView
  417. android:layout_width="wrap_content"
  418. android:layout_height="wrap_content"
  419. android:textAppearance="?android:attr/textAppearanceMedium"
  420. android:text="Medium Text"
  421. android:id="@+id/tv_home_section_gallery_hidden_2"
  422. android:visibility="gone" />
  423. <TextView
  424. android:layout_width="wrap_content"
  425. android:layout_height="wrap_content"
  426. android:textAppearance="?android:attr/textAppearanceMedium"
  427. android:text="Medium Text"
  428. android:id="@+id/tv_home_section_gallery_hidden_3"
  429. android:visibility="gone" />
  430. </LinearLayout>
  431. </LinearLayout>
  432. <LinearLayout
  433. android:id="@+id/ll_home_section_activities_past"
  434. android:layout_width="fill_parent"
  435. android:layout_height="wrap_content"
  436. android:orientation="vertical"
  437. android:background="@drawable/section"
  438. android:layout_margin="7dp"
  439. android:padding="7dp"
  440. android:visibility="gone">
  441. <TextView
  442. android:layout_width="wrap_content"
  443. android:layout_height="wrap_content"
  444. android:text="@string/home_section_activities_past"
  445. android:textAppearance="?android:attr/textAppearanceLarge"
  446. android:textStyle="bold"/>
  447. <LinearLayout
  448. android:id="@+id/ll_home_section_activities_past_content"
  449. android:layout_width="match_parent"
  450. android:layout_height="wrap_content"
  451. android:layout_margin="10dp"
  452. android:orientation="vertical">
  453. </LinearLayout>
  454. </LinearLayout>
  455. <LinearLayout
  456. android:id="@+id/ll_home_section_social"
  457. android:layout_width="fill_parent"
  458. android:layout_height="wrap_content"
  459. android:orientation="vertical"
  460. android:background="@drawable/section"
  461. android:layout_margin="7dp"
  462. android:padding="7dp">
  463. <TextView
  464. android:layout_width="wrap_content"
  465. android:layout_height="wrap_content"
  466. android:text="@string/home_section_social"
  467. android:textAppearance="?android:attr/textAppearanceLarge"
  468. android:textStyle="bold"/>
  469. <LinearLayout
  470. android:id="@+id/ll_home_section_social_content"
  471. android:layout_width="match_parent"
  472. android:layout_height="wrap_content"
  473. android:layout_margin="10dp"
  474. android:orientation="vertical"
  475. android:background="@drawable/entry"
  476. android:padding="7dp">
  477. <LinearLayout
  478. android:layout_width="fill_parent"
  479. android:layout_height="wrap_content"
  480. android:gravity="center_horizontal" >
  481. <ImageView
  482. android:id="@+id/iv_home_section_social_phone"
  483. android:layout_width="wrap_content"
  484. android:layout_height="wrap_content"
  485. android:layout_margin="10dp"
  486. android:adjustViewBounds="true"
  487. android:contentDescription="@string/social_phone"
  488. android:maxWidth="50dp"
  489. android:src="@drawable/social_phone"/>
  490. <ImageView
  491. android:id="@+id/iv_home_section_social_mail"
  492. android:layout_width="wrap_content"
  493. android:layout_height="wrap_content"
  494. android:layout_margin="10dp"
  495. android:adjustViewBounds="true"
  496. android:contentDescription="@string/social_mail"
  497. android:maxWidth="50dp"
  498. android:src="@drawable/social_mail" />
  499. <ImageView
  500. android:id="@+id/iv_home_section_social_whatsapp"
  501. android:layout_width="wrap_content"
  502. android:layout_height="wrap_content"
  503. android:layout_margin="10dp"
  504. android:adjustViewBounds="true"
  505. android:contentDescription="@string/social_whatsapp"
  506. android:maxWidth="50dp"
  507. android:src="@drawable/social_whatsapp" />
  508. <ImageView
  509. android:id="@+id/iv_home_section_social_facebook"
  510. android:layout_width="wrap_content"
  511. android:layout_height="wrap_content"
  512. android:layout_margin="10dp"
  513. android:adjustViewBounds="true"
  514. android:contentDescription="@string/social_facebook"
  515. android:maxWidth="50dp"
  516. android:src="@drawable/social_facebook" />
  517. </LinearLayout>
  518. <LinearLayout
  519. android:layout_width="fill_parent"
  520. android:layout_height="wrap_content"
  521. android:gravity="center_horizontal" >
  522. <ImageView
  523. android:id="@+id/iv_home_section_social_twitter"
  524. android:layout_width="wrap_content"
  525. android:layout_height="wrap_content"
  526. android:layout_margin="10dp"
  527. android:adjustViewBounds="true"
  528. android:contentDescription="@string/social_twitter"
  529. android:maxWidth="50dp"
  530. android:src="@drawable/social_twitter" />
  531. <ImageView
  532. android:id="@+id/iv_home_section_social_googleplus"
  533. android:layout_width="wrap_content"
  534. android:layout_height="wrap_content"
  535. android:layout_margin="10dp"
  536. android:adjustViewBounds="true"
  537. android:contentDescription="@string/social_googleplus"
  538. android:maxWidth="50dp"
  539. android:src="@drawable/social_googleplus" />
  540. <ImageView
  541. android:id="@+id/iv_home_section_social_youtube"
  542. android:layout_width="wrap_content"
  543. android:layout_height="wrap_content"
  544. android:layout_margin="10dp"
  545. android:adjustViewBounds="true"
  546. android:contentDescription="@string/social_youtube"
  547. android:maxWidth="50dp"
  548. android:src="@drawable/social_youtube" />
  549. <ImageView
  550. android:id="@+id/iv_home_section_social_instagram"
  551. android:layout_width="wrap_content"
  552. android:layout_height="wrap_content"
  553. android:layout_margin="10dp"
  554. android:adjustViewBounds="true"
  555. android:contentDescription="@string/social_instagram"
  556. android:maxWidth="50dp"
  557. android:src="@drawable/social_instagram" />
  558. </LinearLayout>
  559. </LinearLayout>
  560. </LinearLayout>
  561. </LinearLayout>
  562. </com.ivalentin.margolariak.CustomScrollView>