activity_mode_entrance2.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/content_view"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/bg_color">
  8. <FrameLayout
  9. android:id="@+id/home_layout"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:layout_margin="@dimen/convert_20px"
  16. android:orientation="horizontal">
  17. <androidx.constraintlayout.widget.ConstraintLayout
  18. android:id="@+id/mode_content_one"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:layout_weight="1.8">
  22. <ImageView
  23. android:id="@+id/iv_one_bg"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:background="@drawable/entrance_062_bg_1"
  27. />
  28. <androidx.appcompat.widget.AppCompatTextView
  29. android:id="@+id/tv_one_title"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:layout_marginStart="@dimen/convert_52px"
  33. android:layout_marginEnd="@dimen/convert_52px"
  34. android:layout_marginBottom="@dimen/convert_75px"
  35. android:gravity="center"
  36. android:textColor="@color/white"
  37. android:textSize="@dimen/convert_46px"
  38. android:text="@string/automatic_programmes"
  39. app:layout_constraintBottom_toBottomOf="parent"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. app:layout_constraintStart_toStartOf="parent" />
  42. </androidx.constraintlayout.widget.ConstraintLayout>
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:layout_marginLeft="@dimen/convert_15px"
  47. android:layout_weight="1"
  48. android:orientation="vertical">
  49. <LinearLayout
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"
  52. android:layout_weight="1"
  53. android:layout_marginBottom="@dimen/convert_10px"
  54. android:orientation="horizontal">
  55. <androidx.constraintlayout.widget.ConstraintLayout
  56. android:layout_width="match_parent"
  57. android:layout_height="match_parent"
  58. android:layout_weight="1"
  59. android:layout_marginRight="@dimen/convert_7px"
  60. >
  61. <ImageView
  62. android:id="@+id/iv_two_bg"
  63. android:layout_width="match_parent"
  64. android:layout_height="match_parent"
  65. android:background="@drawable/entrance_062_bg_2"
  66. />
  67. <androidx.appcompat.widget.AppCompatTextView
  68. android:id="@+id/tv_two_title"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:layout_marginStart="@dimen/convert_80px"
  72. android:layout_marginEnd="@dimen/convert_80px"
  73. android:layout_marginBottom="@dimen/convert_75px"
  74. android:gravity="center"
  75. android:textColor="@color/white"
  76. android:textSize="@dimen/convert_46px"
  77. android:text="@string/automatic_recipes"
  78. app:layout_constraintBottom_toBottomOf="parent"
  79. app:layout_constraintEnd_toEndOf="parent"
  80. app:layout_constraintStart_toStartOf="parent" />
  81. </androidx.constraintlayout.widget.ConstraintLayout>
  82. <androidx.constraintlayout.widget.ConstraintLayout
  83. android:layout_width="match_parent"
  84. android:layout_height="match_parent"
  85. android:layout_weight="1"
  86. android:layout_marginLeft="@dimen/convert_7px"
  87. >
  88. <ImageView
  89. android:id="@+id/iv_three_bg"
  90. android:layout_width="match_parent"
  91. android:layout_height="match_parent"
  92. android:background="@drawable/entrance_062_bg_3"
  93. />
  94. <androidx.appcompat.widget.AppCompatTextView
  95. android:id="@+id/tv_three_title"
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:layout_marginStart="@dimen/convert_80px"
  99. android:layout_marginEnd="@dimen/convert_80px"
  100. android:layout_marginBottom="@dimen/convert_75px"
  101. android:gravity="center"
  102. android:textColor="@color/white"
  103. android:textSize="@dimen/convert_46px"
  104. android:text="@string/manual_cooking"
  105. app:layout_constraintBottom_toBottomOf="parent"
  106. app:layout_constraintEnd_toEndOf="parent"
  107. app:layout_constraintStart_toStartOf="parent" />
  108. </androidx.constraintlayout.widget.ConstraintLayout>
  109. </LinearLayout>
  110. <LinearLayout
  111. android:layout_width="match_parent"
  112. android:layout_height="match_parent"
  113. android:layout_weight="2.3">
  114. <androidx.constraintlayout.widget.ConstraintLayout
  115. android:layout_width="match_parent"
  116. android:layout_height="match_parent"
  117. android:layout_weight="1"
  118. >
  119. <ImageView
  120. android:id="@+id/iv_four_bg"
  121. android:layout_width="match_parent"
  122. android:layout_height="match_parent"
  123. android:background="@drawable/entrance_062_bg_4"
  124. />
  125. <androidx.appcompat.widget.AppCompatTextView
  126. android:id="@+id/tv_four_title"
  127. android:layout_width="@dimen/convert_450px"
  128. android:layout_height="wrap_content"
  129. android:gravity="center"
  130. android:textColor="@color/white"
  131. android:textSize="@dimen/convert_46px"
  132. android:text="@string/download_new_recipes"
  133. app:layout_constraintTop_toTopOf="parent"
  134. app:layout_constraintBottom_toBottomOf="parent"
  135. app:layout_constraintEnd_toEndOf="parent"
  136. app:layout_constraintStart_toStartOf="parent" />
  137. </androidx.constraintlayout.widget.ConstraintLayout>
  138. </LinearLayout>
  139. </LinearLayout>
  140. </LinearLayout>
  141. <ImageView
  142. android:id="@+id/iv_tab"
  143. android:layout_width="@dimen/convert_80px"
  144. android:layout_height="@dimen/convert_80px"
  145. android:layout_marginStart="@dimen/convert_50px"
  146. android:layout_marginTop="@dimen/convert_50px"
  147. android:src="@drawable/iv_062_tab" />
  148. </FrameLayout>
  149. <RelativeLayout
  150. android:id="@+id/right_content_layout"
  151. android:layout_width="@dimen/convert_550px"
  152. android:layout_height="match_parent"
  153. android:layout_alignParentEnd="true"
  154. android:layout_gravity="end"
  155. android:background="@color/home_menu_bg">
  156. <ImageView
  157. android:id="@+id/iv_avatar"
  158. android:layout_width="@dimen/convert_140px"
  159. android:layout_height="@dimen/convert_140px"
  160. android:layout_centerHorizontal="true"
  161. android:layout_marginTop="@dimen/convert_80px"
  162. android:src="@drawable/ic_user" />
  163. <androidx.appcompat.widget.AppCompatTextView
  164. android:id="@+id/tv_user_name"
  165. android:layout_width="wrap_content"
  166. android:layout_height="wrap_content"
  167. android:layout_below="@id/iv_avatar"
  168. android:layout_centerHorizontal="true"
  169. android:layout_marginTop="@dimen/convert_24px"
  170. android:includeFontPadding="false"
  171. android:text="@string/login"
  172. android:textColor="@color/home_user_name"
  173. android:textSize="@dimen/convert_30px" />
  174. <LinearLayout
  175. android:id="@+id/history_layout"
  176. android:layout_width="match_parent"
  177. android:layout_height="@dimen/convert_60px"
  178. android:layout_below="@id/tv_user_name"
  179. android:layout_marginStart="@dimen/convert_40px"
  180. android:layout_marginTop="@dimen/convert_40px"
  181. android:layout_marginEnd="@dimen/convert_40px"
  182. android:background="@drawable/home_menu_corners"
  183. android:gravity="center_vertical"
  184. android:orientation="horizontal">
  185. <ImageView
  186. android:layout_width="@dimen/convert_42px"
  187. android:layout_height="@dimen/convert_42px"
  188. android:layout_marginStart="@dimen/convert_60px"
  189. android:background="@drawable/ic_history" />
  190. <com.develop.common.widget.MarqueeTextView
  191. android:id="@+id/tv_history"
  192. android:layout_width="wrap_content"
  193. android:layout_height="wrap_content"
  194. android:layout_marginStart="@dimen/convert_29px"
  195. android:ellipsize="marquee"
  196. android:focusable="true"
  197. android:focusableInTouchMode="true"
  198. android:marqueeRepeatLimit="marquee_forever"
  199. android:singleLine="true"
  200. android:text="@string/cook_history"
  201. android:textColor="@color/home_menu_title"
  202. android:textSize="@dimen/convert_30px" />
  203. </LinearLayout>
  204. <LinearLayout
  205. android:id="@+id/favourite_layout"
  206. android:layout_width="match_parent"
  207. android:layout_height="@dimen/convert_60px"
  208. android:layout_below="@id/history_layout"
  209. android:layout_marginStart="@dimen/convert_40px"
  210. android:layout_marginTop="@dimen/convert_24px"
  211. android:layout_marginEnd="@dimen/convert_40px"
  212. android:background="@drawable/home_menu_corners"
  213. android:gravity="center_vertical"
  214. android:orientation="horizontal">
  215. <ImageView
  216. android:layout_width="@dimen/convert_42px"
  217. android:layout_height="@dimen/convert_42px"
  218. android:layout_marginStart="@dimen/convert_60px"
  219. android:background="@drawable/ic_favourite" />
  220. <com.develop.common.widget.MarqueeTextView
  221. android:id="@+id/tv_favourite"
  222. android:layout_width="wrap_content"
  223. android:layout_height="wrap_content"
  224. android:layout_marginStart="@dimen/convert_29px"
  225. android:ellipsize="marquee"
  226. android:focusable="true"
  227. android:focusableInTouchMode="true"
  228. android:marqueeRepeatLimit="marquee_forever"
  229. android:singleLine="true"
  230. android:text="@string/favourite_recipes"
  231. android:textColor="@color/home_menu_title"
  232. android:textSize="@dimen/convert_30px" />
  233. </LinearLayout>
  234. <LinearLayout
  235. android:id="@+id/setting_layout"
  236. android:layout_width="match_parent"
  237. android:layout_height="@dimen/convert_60px"
  238. android:layout_below="@id/favourite_layout"
  239. android:layout_marginStart="@dimen/convert_40px"
  240. android:layout_marginTop="@dimen/convert_24px"
  241. android:layout_marginEnd="@dimen/convert_40px"
  242. android:background="@drawable/home_menu_corners"
  243. android:gravity="center_vertical"
  244. android:orientation="horizontal">
  245. <ImageView
  246. android:layout_width="@dimen/convert_42px"
  247. android:layout_height="@dimen/convert_42px"
  248. android:layout_marginStart="@dimen/convert_60px"
  249. android:background="@drawable/ic_setting" />
  250. <com.develop.common.widget.MarqueeTextView
  251. android:id="@+id/tv_setting"
  252. android:layout_width="wrap_content"
  253. android:layout_height="wrap_content"
  254. android:layout_marginStart="@dimen/convert_29px"
  255. android:ellipsize="marquee"
  256. android:focusable="true"
  257. android:focusableInTouchMode="true"
  258. android:marqueeRepeatLimit="marquee_forever"
  259. android:singleLine="true"
  260. android:text="@string/settings"
  261. android:textColor="@color/home_menu_title"
  262. android:textSize="@dimen/convert_30px" />
  263. </LinearLayout>
  264. <LinearLayout
  265. android:id="@+id/help_layout"
  266. android:layout_width="match_parent"
  267. android:layout_height="@dimen/convert_60px"
  268. android:layout_below="@id/setting_layout"
  269. android:layout_marginStart="@dimen/convert_40px"
  270. android:layout_marginTop="@dimen/convert_24px"
  271. android:layout_marginEnd="@dimen/convert_40px"
  272. android:background="@drawable/home_menu_corners"
  273. android:gravity="center_vertical"
  274. android:orientation="horizontal">
  275. <ImageView
  276. android:layout_width="@dimen/convert_42px"
  277. android:layout_height="@dimen/convert_42px"
  278. android:layout_marginStart="@dimen/convert_60px"
  279. android:background="@drawable/ic_help" />
  280. <com.develop.common.widget.MarqueeTextView
  281. android:id="@+id/tv_help"
  282. android:layout_width="wrap_content"
  283. android:layout_height="wrap_content"
  284. android:layout_marginStart="@dimen/convert_29px"
  285. android:ellipsize="marquee"
  286. android:focusable="true"
  287. android:focusableInTouchMode="true"
  288. android:marqueeRepeatLimit="marquee_forever"
  289. android:singleLine="true"
  290. android:text="@string/help"
  291. android:textColor="@color/home_menu_title"
  292. android:textSize="@dimen/convert_30px" />
  293. </LinearLayout>
  294. <LinearLayout
  295. android:id="@+id/policy_layout"
  296. android:layout_width="match_parent"
  297. android:layout_height="@dimen/convert_60px"
  298. android:layout_below="@id/help_layout"
  299. android:layout_marginStart="@dimen/convert_40px"
  300. android:layout_marginTop="@dimen/convert_24px"
  301. android:layout_marginEnd="@dimen/convert_40px"
  302. android:background="@drawable/home_menu_corners"
  303. android:gravity="center_vertical"
  304. android:orientation="horizontal">
  305. <ImageView
  306. android:layout_width="@dimen/convert_42px"
  307. android:layout_height="@dimen/convert_42px"
  308. android:layout_marginStart="@dimen/convert_60px"
  309. android:background="@drawable/ic_policy" />
  310. <com.develop.common.widget.MarqueeTextView
  311. android:id="@+id/tv_policy"
  312. android:layout_width="wrap_content"
  313. android:layout_height="wrap_content"
  314. android:layout_marginStart="@dimen/convert_29px"
  315. android:ellipsize="marquee"
  316. android:focusable="true"
  317. android:focusableInTouchMode="true"
  318. android:marqueeRepeatLimit="marquee_forever"
  319. android:singleLine="true"
  320. android:text="@string/privacy_policy"
  321. android:textColor="@color/home_menu_title"
  322. android:textSize="@dimen/convert_30px" />
  323. </LinearLayout>
  324. </RelativeLayout>
  325. </androidx.drawerlayout.widget.DrawerLayout>