fragment_layout_home.xml 21 KB

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