home_motion_scene.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:motion="http://schemas.android.com/apk/res-auto">
  5. <Transition
  6. motion:constraintSetEnd="@+id/home_motion_02"
  7. motion:constraintSetStart="@+id/home_motion_01"
  8. motion:duration="250">
  9. <OnSwipe
  10. motion:dragDirection="dragUp"
  11. motion:touchAnchorId="@+id/home_fragment_list"
  12. motion:touchAnchorSide="bottom" />
  13. </Transition>
  14. <ConstraintSet android:id="@+id/home_motion_01">
  15. <Constraint
  16. android:id="@+id/home_fragment_analog_time"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_marginTop="@dimen/margin_top"
  20. app:visibilityMode="ignore"
  21. app:layout_constraintEnd_toEndOf="parent"
  22. app:layout_constraintHorizontal_bias="0.5"
  23. app:layout_constraintStart_toStartOf="parent"
  24. app:layout_constraintTop_toTopOf="parent"/>
  25. <Constraint
  26. android:id="@+id/home_fragment_bin_time"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_marginTop="@dimen/margin_top_large"
  30. android:padding="@dimen/_4sdp"
  31. app:visibilityMode="ignore"
  32. app:layout_constraintEnd_toEndOf="parent"
  33. app:layout_constraintHorizontal_bias="0.506"
  34. app:layout_constraintStart_toStartOf="parent"
  35. app:layout_constraintTop_toTopOf="parent"/>
  36. <Constraint
  37. android:id="@+id/home_fragment_time"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_marginTop="@dimen/margin_top_large"
  41. app:visibilityMode="ignore"
  42. app:layout_constraintEnd_toEndOf="parent"
  43. app:layout_constraintHorizontal_bias="0.506"
  44. app:layout_constraintStart_toStartOf="parent"
  45. app:layout_constraintTop_toTopOf="parent" />
  46. <Constraint
  47. android:id="@+id/home_fragment_date"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:padding="@dimen/padding"
  51. android:textSize="@dimen/font_size_home_date"
  52. android:layout_marginTop="@dimen/_88sdp"
  53. app:visibilityMode="ignore"
  54. app:layout_constraintEnd_toEndOf="@+id/home_fragment_time"
  55. app:layout_constraintStart_toStartOf="@+id/home_fragment_time"
  56. app:layout_constraintTop_toTopOf="parent" />
  57. <Constraint
  58. android:id="@+id/home_fragment_list"
  59. android:layout_width="0dp"
  60. android:layout_height="wrap_content"
  61. android:layout_marginStart="@dimen/margin_sides"
  62. android:layout_marginTop="@dimen/margin_top"
  63. android:layout_marginEnd="@dimen/margin_sides"
  64. app:layout_constraintBottom_toTopOf="@+id/home_fragment_list_exp"
  65. app:layout_constraintEnd_toEndOf="parent"
  66. app:layout_constraintHorizontal_bias="0.0"
  67. app:layout_constraintStart_toStartOf="parent"
  68. app:layout_constraintTop_toBottomOf="@+id/home_fragment_date"
  69. app:layout_constraintVertical_bias="0.3"
  70. app:layout_constraintVertical_chainStyle="packed" />
  71. <Constraint
  72. android:id="@+id/home_fragment_list_exp"
  73. android:layout_width="0dp"
  74. android:layout_height="wrap_content"
  75. android:layout_marginStart="@dimen/margin_sides"
  76. android:layout_marginEnd="@dimen/margin_sides"
  77. android:layout_marginBottom="@dimen/margin_bottom_small"
  78. app:layout_constraintBottom_toBottomOf="parent"
  79. app:layout_constraintEnd_toEndOf="parent"
  80. app:layout_constraintHorizontal_bias="0.0"
  81. app:layout_constraintStart_toStartOf="parent"
  82. app:layout_constraintTop_toBottomOf="@+id/home_fragment_list" />
  83. <Constraint
  84. android:id="@+id/home_fragment_options"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_marginBottom="@dimen/margin_bottom_small"
  88. android:alpha="1"
  89. app:layout_constraintBottom_toBottomOf="parent"
  90. app:layout_constraintEnd_toStartOf="@+id/home_fragment_camera"
  91. app:layout_constraintStart_toEndOf="@+id/home_fragment_call" />
  92. <Constraint
  93. android:id="@+id/home_fragment_call"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:layout_marginStart="@dimen/margin_sides_small"
  97. android:layout_marginBottom="@dimen/margin_bottom_small"
  98. app:layout_constraintBottom_toBottomOf="parent"
  99. app:layout_constraintStart_toStartOf="parent" />
  100. <Constraint
  101. android:id="@+id/home_fragment_camera"
  102. android:layout_width="wrap_content"
  103. android:layout_height="wrap_content"
  104. android:layout_marginEnd="@dimen/margin_sides_small"
  105. android:layout_marginBottom="@dimen/margin_bottom_small"
  106. app:layout_constraintBottom_toBottomOf="parent"
  107. app:layout_constraintEnd_toEndOf="parent" />
  108. <Constraint
  109. android:id="@+id/app_drawer_edit_text"
  110. android:padding="@dimen/padding"
  111. android:layout_width="0dp"
  112. android:layout_height="wrap_content"
  113. android:layout_marginStart="@dimen/margin_sides"
  114. android:layout_marginTop="@dimen/margin_top_large"
  115. android:layout_marginEnd="@dimen/margin_sides"
  116. app:visibilityMode="ignore"
  117. app:layout_constraintEnd_toEndOf="parent"
  118. app:layout_constraintStart_toStartOf="parent"
  119. app:layout_constraintTop_toBottomOf="parent" />
  120. <Constraint
  121. android:id="@+id/app_drawer_fragment_list"
  122. android:layout_width="0dp"
  123. android:layout_height="0dp"
  124. android:layout_marginStart="@dimen/margin_sides_small"
  125. android:layout_marginEnd="@dimen/margin_sides"
  126. android:alpha="-1"
  127. app:layout_constraintEnd_toEndOf="parent"
  128. app:layout_constraintStart_toStartOf="parent"
  129. app:layout_constraintTop_toBottomOf="@+id/app_drawer_edit_text" />
  130. </ConstraintSet>
  131. <ConstraintSet android:id="@+id/home_motion_02">
  132. <Constraint
  133. android:id="@+id/home_fragment_time"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_marginTop="@dimen/margin_top_large"
  137. android:alpha="-1"
  138. app:visibilityMode="ignore"
  139. app:layout_constraintBottom_toTopOf="parent"
  140. app:layout_constraintEnd_toEndOf="parent"
  141. app:layout_constraintHorizontal_bias="0.5"
  142. app:layout_constraintStart_toStartOf="parent" />
  143. <Constraint
  144. android:id="@+id/home_fragment_analog_time"
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. android:layout_marginTop="0px"
  148. android:alpha="0"
  149. app:visibilityMode="ignore"
  150. app:layout_constraintEnd_toEndOf="parent"
  151. app:layout_constraintHorizontal_bias="0.5"
  152. app:layout_constraintStart_toStartOf="parent"
  153. app:layout_constraintBottom_toTopOf="parent"
  154. app:layout_constraintTop_toTopOf="parent"/>
  155. <Constraint
  156. android:id="@+id/home_fragment_bin_time"
  157. android:layout_width="wrap_content"
  158. android:layout_height="0px"
  159. android:layout_marginTop="0px"
  160. android:alpha="-1"
  161. app:visibilityMode="ignore"
  162. app:layout_constraintBottom_toTopOf="parent"
  163. app:layout_constraintEnd_toEndOf="parent"
  164. app:layout_constraintHorizontal_bias="0.5"
  165. app:layout_constraintStart_toStartOf="parent" />
  166. <Constraint
  167. android:id="@+id/home_fragment_date"
  168. android:layout_width="wrap_content"
  169. android:layout_height="wrap_content"
  170. android:alpha="-1"
  171. app:visibilityMode="ignore"
  172. app:layout_constraintBottom_toTopOf="parent"
  173. app:layout_constraintEnd_toEndOf="@+id/home_fragment_time"
  174. app:layout_constraintStart_toStartOf="@+id/home_fragment_time" />
  175. <Constraint
  176. android:id="@+id/home_fragment_list"
  177. android:layout_width="0dp"
  178. android:layout_height="wrap_content"
  179. android:layout_marginStart="@dimen/margin_sides_small"
  180. android:layout_marginEnd="@dimen/margin_sides"
  181. android:alpha="-1"
  182. app:layout_constraintBottom_toTopOf="parent"
  183. app:layout_constraintEnd_toEndOf="parent"
  184. app:layout_constraintHorizontal_bias="0.5"
  185. app:layout_constraintStart_toStartOf="parent" />
  186. <Constraint
  187. android:id="@+id/home_fragment_list_exp"
  188. android:layout_width="0dp"
  189. android:layout_height="wrap_content"
  190. android:layout_marginStart="@dimen/margin_sides"
  191. android:layout_marginEnd="@dimen/margin_sides_small"
  192. android:layout_marginBottom="@dimen/margin_bottom_small"
  193. android:alpha="-1"
  194. app:layout_constraintBottom_toTopOf="parent"
  195. app:layout_constraintEnd_toEndOf="parent"
  196. app:layout_constraintHorizontal_bias="0.5"
  197. app:layout_constraintStart_toStartOf="parent" />
  198. <Constraint
  199. android:id="@+id/home_fragment_options"
  200. android:layout_width="wrap_content"
  201. android:layout_height="wrap_content"
  202. android:alpha="-3"
  203. app:layout_constraintTop_toBottomOf="parent" />
  204. <Constraint
  205. android:id="@+id/home_fragment_call"
  206. android:layout_width="wrap_content"
  207. android:layout_height="wrap_content"
  208. android:layout_marginStart="@dimen/margin_sides_small"
  209. android:alpha="-1"
  210. app:layout_constraintStart_toStartOf="parent"
  211. app:layout_constraintTop_toBottomOf="parent" />
  212. <Constraint
  213. android:id="@+id/home_fragment_camera"
  214. android:layout_width="wrap_content"
  215. android:layout_height="wrap_content"
  216. android:layout_marginEnd="@dimen/margin_bottom_small"
  217. android:alpha="-1"
  218. app:layout_constraintEnd_toEndOf="parent"
  219. app:layout_constraintTop_toBottomOf="parent" />
  220. <Constraint
  221. android:id="@+id/app_drawer_edit_text"
  222. android:padding="@dimen/padding"
  223. android:layout_width="0dp"
  224. android:layout_height="wrap_content"
  225. android:layout_marginStart="@dimen/margin_sides"
  226. android:layout_marginTop="@dimen/margin_top_large"
  227. android:layout_marginEnd="@dimen/margin_sides_small"
  228. app:visibilityMode="ignore"
  229. app:layout_constraintEnd_toEndOf="parent"
  230. app:layout_constraintStart_toStartOf="parent"
  231. app:layout_constraintTop_toTopOf="parent" />
  232. <Constraint
  233. android:id="@+id/app_drawer_fragment_list"
  234. android:layout_width="0dp"
  235. android:layout_height="0dp"
  236. android:layout_marginStart="@dimen/margin_sides"
  237. android:layout_marginEnd="@dimen/margin_sides"
  238. app:layout_constraintBottom_toBottomOf="parent"
  239. app:layout_constraintEnd_toEndOf="parent"
  240. app:layout_constraintStart_toStartOf="parent"
  241. app:layout_constraintTop_toBottomOf="@+id/app_drawer_edit_text" />
  242. </ConstraintSet>
  243. </MotionScene>