home_motion_scene_bottom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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/_22sdp"
  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/_42sdp"
  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/_42sdp"
  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/_4sdp"
  51. android:textSize="@dimen/_12sdp"
  52. android:layout_marginTop="@dimen/_94sdp"
  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/_16sdp"
  62. android:layout_marginLeft="@dimen/_16sdp"
  63. android:layout_marginTop="8dp"
  64. android:layout_marginEnd="@dimen/_16sdp"
  65. android:layout_marginRight="@dimen/_16sdp"
  66. app:layout_constraintBottom_toTopOf="@+id/home_fragment_list_exp"
  67. app:layout_constraintEnd_toEndOf="parent"
  68. app:layout_constraintHorizontal_bias="0.0"
  69. app:layout_constraintStart_toStartOf="parent"
  70. app:layout_constraintTop_toBottomOf="@+id/home_fragment_date"
  71. app:layout_constraintVertical_bias="0.3"
  72. app:layout_constraintVertical_chainStyle="packed" />
  73. <Constraint
  74. android:id="@+id/home_fragment_list_exp"
  75. android:layout_width="0dp"
  76. android:layout_height="wrap_content"
  77. android:layout_marginStart="@dimen/_16sdp"
  78. android:layout_marginLeft="@dimen/_16sdp"
  79. android:layout_marginEnd="@dimen/_16sdp"
  80. android:layout_marginRight="@dimen/_16sdp"
  81. android:layout_marginBottom="@dimen/_8sdp"
  82. app:layout_constraintBottom_toBottomOf="parent"
  83. app:layout_constraintEnd_toEndOf="parent"
  84. app:layout_constraintHorizontal_bias="0.0"
  85. app:layout_constraintStart_toStartOf="parent"
  86. app:layout_constraintTop_toBottomOf="@+id/home_fragment_list" />
  87. <Constraint
  88. android:id="@+id/home_fragment_options"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:layout_marginBottom="@dimen/_8sdp"
  92. android:alpha="1"
  93. app:layout_constraintBottom_toBottomOf="parent"
  94. app:layout_constraintEnd_toStartOf="@+id/home_fragment_camera"
  95. app:layout_constraintStart_toEndOf="@+id/home_fragment_call" />
  96. <Constraint
  97. android:id="@+id/home_fragment_call"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:layout_marginStart="@dimen/_8sdp"
  101. android:layout_marginBottom="@dimen/_8sdp"
  102. app:layout_constraintBottom_toBottomOf="parent"
  103. app:layout_constraintStart_toStartOf="parent" />
  104. <Constraint
  105. android:id="@+id/home_fragment_camera"
  106. android:layout_width="wrap_content"
  107. android:layout_height="wrap_content"
  108. android:layout_marginEnd="@dimen/_8sdp"
  109. android:layout_marginBottom="@dimen/_8sdp"
  110. app:layout_constraintBottom_toBottomOf="parent"
  111. app:layout_constraintEnd_toEndOf="parent" />
  112. <Constraint
  113. android:id="@+id/app_drawer_edit_text"
  114. android:layout_width="0dp"
  115. android:layout_height="wrap_content"
  116. android:layout_marginStart="8dp"
  117. android:layout_marginLeft="8dp"
  118. android:layout_marginTop="32dp"
  119. android:layout_marginEnd="8dp"
  120. android:layout_marginRight="8dp"
  121. app:visibilityMode="ignore"
  122. app:layout_constraintEnd_toEndOf="parent"
  123. app:layout_constraintStart_toStartOf="parent"
  124. app:layout_constraintTop_toBottomOf="@id/app_drawer_fragment_list" />
  125. <Constraint
  126. android:id="@+id/app_drawer_fragment_list"
  127. android:layout_width="0dp"
  128. android:layout_height="0dp"
  129. android:layout_marginStart="8dp"
  130. android:layout_marginLeft="8dp"
  131. android:layout_marginEnd="8dp"
  132. android:layout_marginRight="8dp"
  133. android:alpha="-1"
  134. app:layout_constraintEnd_toEndOf="parent"
  135. app:layout_constraintStart_toStartOf="parent"
  136. app:layout_constraintTop_toBottomOf="parent" />
  137. </ConstraintSet>
  138. <ConstraintSet android:id="@+id/home_motion_02">
  139. <Constraint
  140. android:id="@+id/home_fragment_time"
  141. android:layout_width="wrap_content"
  142. android:layout_height="wrap_content"
  143. android:layout_marginTop="@dimen/_44sdp"
  144. android:alpha="-1"
  145. app:visibilityMode="ignore"
  146. app:layout_constraintBottom_toTopOf="parent"
  147. app:layout_constraintEnd_toEndOf="parent"
  148. app:layout_constraintHorizontal_bias="0.5"
  149. app:layout_constraintStart_toStartOf="parent" />
  150. <Constraint
  151. android:id="@+id/home_fragment_analog_time"
  152. android:layout_width="wrap_content"
  153. android:layout_height="wrap_content"
  154. android:layout_marginTop="0px"
  155. android:alpha="0"
  156. app:visibilityMode="ignore"
  157. app:layout_constraintEnd_toEndOf="parent"
  158. app:layout_constraintHorizontal_bias="0.5"
  159. app:layout_constraintStart_toStartOf="parent"
  160. app:layout_constraintBottom_toTopOf="parent"
  161. app:layout_constraintTop_toTopOf="parent"/>
  162. <Constraint
  163. android:id="@+id/home_fragment_bin_time"
  164. android:layout_width="wrap_content"
  165. android:layout_height="0px"
  166. android:layout_marginTop="0px"
  167. android:alpha="-1"
  168. app:visibilityMode="ignore"
  169. app:layout_constraintBottom_toTopOf="parent"
  170. app:layout_constraintEnd_toEndOf="parent"
  171. app:layout_constraintHorizontal_bias="0.5"
  172. app:layout_constraintStart_toStartOf="parent" />
  173. <Constraint
  174. android:id="@+id/home_fragment_date"
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:alpha="-1"
  178. app:visibilityMode="ignore"
  179. app:layout_constraintBottom_toTopOf="parent"
  180. app:layout_constraintEnd_toEndOf="@+id/home_fragment_time"
  181. app:layout_constraintStart_toStartOf="@+id/home_fragment_time" />
  182. <Constraint
  183. android:id="@+id/home_fragment_list"
  184. android:layout_width="0dp"
  185. android:layout_height="wrap_content"
  186. android:layout_marginStart="@dimen/_16sdp"
  187. android:layout_marginLeft="@dimen/_16sdp"
  188. android:layout_marginEnd="@dimen/_16sdp"
  189. android:layout_marginRight="@dimen/_16sdp"
  190. android:alpha="-1"
  191. app:layout_constraintBottom_toTopOf="parent"
  192. app:layout_constraintEnd_toEndOf="parent"
  193. app:layout_constraintHorizontal_bias="0.5"
  194. app:layout_constraintStart_toStartOf="parent" />
  195. <Constraint
  196. android:id="@+id/home_fragment_list_exp"
  197. android:layout_width="0dp"
  198. android:layout_height="wrap_content"
  199. android:layout_marginStart="@dimen/_16sdp"
  200. android:layout_marginLeft="@dimen/_16sdp"
  201. android:layout_marginEnd="@dimen/_16sdp"
  202. android:layout_marginRight="@dimen/_16sdp"
  203. android:layout_marginBottom="@dimen/_8sdp"
  204. android:alpha="-1"
  205. app:layout_constraintBottom_toTopOf="parent"
  206. app:layout_constraintEnd_toEndOf="parent"
  207. app:layout_constraintHorizontal_bias="0.5"
  208. app:layout_constraintStart_toStartOf="parent" />
  209. <Constraint
  210. android:id="@+id/home_fragment_options"
  211. android:layout_width="wrap_content"
  212. android:layout_height="wrap_content"
  213. android:alpha="-3"
  214. app:layout_constraintTop_toBottomOf="parent" />
  215. <Constraint
  216. android:id="@+id/home_fragment_call"
  217. android:layout_width="wrap_content"
  218. android:layout_height="wrap_content"
  219. android:layout_marginStart="@dimen/_8sdp"
  220. android:alpha="-1"
  221. app:layout_constraintStart_toStartOf="parent"
  222. app:layout_constraintTop_toBottomOf="parent" />
  223. <Constraint
  224. android:id="@+id/home_fragment_camera"
  225. android:layout_width="wrap_content"
  226. android:layout_height="wrap_content"
  227. android:layout_marginEnd="@dimen/_8sdp"
  228. android:alpha="-1"
  229. app:layout_constraintEnd_toEndOf="parent"
  230. app:layout_constraintTop_toBottomOf="parent" />
  231. <Constraint
  232. android:id="@+id/app_drawer_edit_text"
  233. android:layout_width="0dp"
  234. android:layout_height="wrap_content"
  235. android:layout_marginStart="8dp"
  236. android:layout_marginLeft="8dp"
  237. android:layout_marginTop="32dp"
  238. android:layout_marginEnd="8dp"
  239. android:layout_marginRight="8dp"
  240. app:visibilityMode="ignore"
  241. app:layout_constraintEnd_toEndOf="parent"
  242. app:layout_constraintStart_toStartOf="parent"
  243. app:layout_constraintBottom_toBottomOf="parent" />
  244. <Constraint
  245. android:id="@+id/app_drawer_fragment_list"
  246. android:layout_width="0dp"
  247. android:layout_height="0dp"
  248. android:layout_marginStart="8dp"
  249. android:layout_marginLeft="8dp"
  250. android:layout_marginEnd="8dp"
  251. android:layout_marginRight="8dp"
  252. app:layout_constraintBottom_toTopOf="@id/app_drawer_edit_text"
  253. app:layout_constraintEnd_toEndOf="parent"
  254. app:layout_constraintStart_toStartOf="parent"
  255. app:layout_constraintTop_toTopOf="parent" />
  256. </ConstraintSet>
  257. </MotionScene>