home_motion_scene.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:motion="http://schemas.android.com/apk/res-auto">
  4. <Transition
  5. motion:constraintSetEnd="@+id/end"
  6. motion:constraintSetStart="@+id/start"
  7. motion:duration="250">
  8. <OnSwipe
  9. motion:dragDirection="dragUp"
  10. motion:touchAnchorId="@+id/home_fragment_date"
  11. motion:touchAnchorSide="bottom" />
  12. </Transition>
  13. <ConstraintSet android:id="@+id/start">
  14. <Constraint
  15. android:id="@+id/home_fragment_time"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_marginTop="@dimen/_64sdp"
  19. motion:layout_constraintEnd_toEndOf="parent"
  20. motion:layout_constraintHorizontal_bias="0.506"
  21. motion:layout_constraintStart_toStartOf="parent"
  22. motion:layout_constraintTop_toTopOf="parent" />
  23. <Constraint
  24. android:id="@+id/home_fragment_time_format"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_marginTop="@dimen/_10sdp"
  28. motion:layout_constraintStart_toEndOf="@+id/home_fragment_time"
  29. motion:layout_constraintTop_toTopOf="@+id/home_fragment_time" />
  30. <Constraint
  31. android:id="@+id/home_fragment_date"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:padding="@dimen/_4sdp"
  35. android:text="@string/main_placeholder_date"
  36. motion:layout_constraintEnd_toEndOf="@+id/home_fragment_time"
  37. motion:layout_constraintStart_toStartOf="@+id/home_fragment_time"
  38. motion:layout_constraintTop_toBottomOf="@+id/home_fragment_time" />
  39. <Constraint
  40. android:id="@+id/home_fragment_list"
  41. android:layout_width="0dp"
  42. android:layout_height="wrap_content"
  43. android:layout_marginStart="@dimen/_16sdp"
  44. android:layout_marginLeft="@dimen/_16sdp"
  45. android:layout_marginTop="8dp"
  46. android:layout_marginEnd="@dimen/_16sdp"
  47. android:layout_marginRight="@dimen/_16sdp"
  48. android:layout_marginBottom="@dimen/_8sdp"
  49. motion:layout_constraintBottom_toBottomOf="parent"
  50. motion:layout_constraintEnd_toEndOf="parent"
  51. motion:layout_constraintHorizontal_bias="0.0"
  52. motion:layout_constraintStart_toStartOf="parent"
  53. motion:layout_constraintTop_toTopOf="parent"
  54. motion:layout_constraintVertical_bias="0.55" />
  55. <Constraint
  56. android:id="@+id/home_fragment_list_exp"
  57. android:layout_width="0dp"
  58. android:layout_height="wrap_content"
  59. android:layout_marginStart="@dimen/_16sdp"
  60. android:layout_marginLeft="@dimen/_16sdp"
  61. android:layout_marginTop="@dimen/_16sdp"
  62. android:layout_marginEnd="@dimen/_16sdp"
  63. android:layout_marginRight="@dimen/_16sdp"
  64. android:layout_marginBottom="@dimen/_8sdp"
  65. android:alpha="-2"
  66. motion:layout_constraintEnd_toEndOf="parent"
  67. motion:layout_constraintHorizontal_bias="0.5"
  68. motion:layout_constraintStart_toStartOf="parent"
  69. motion:layout_constraintTop_toBottomOf="parent" />
  70. <Constraint
  71. android:id="@+id/home_fragment_options"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:alpha="-3"
  75. motion:layout_constraintBottom_toBottomOf="parent"
  76. motion:layout_constraintStart_toStartOf="@+id/home_fragment_list_exp"
  77. motion:layout_constraintTop_toBottomOf="@+id/home_fragment_list_exp" />
  78. <Constraint
  79. android:id="@+id/home_fragment_notes"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:alpha="-3"
  83. motion:layout_constraintBottom_toBottomOf="parent"
  84. motion:layout_constraintEnd_toEndOf="@+id/home_fragment_list_exp"
  85. motion:layout_constraintTop_toBottomOf="@+id/home_fragment_list_exp" />
  86. <Constraint
  87. android:id="@+id/home_fragment_call"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_marginStart="@dimen/_8sdp"
  91. android:layout_marginLeft="@dimen/_8sdp"
  92. android:layout_marginBottom="@dimen/_8sdp"
  93. motion:layout_constraintBottom_toBottomOf="parent"
  94. motion:layout_constraintStart_toStartOf="parent" />
  95. <Constraint
  96. android:id="@+id/home_fragment_camera"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:layout_marginEnd="@dimen/_8sdp"
  100. android:layout_marginRight="@dimen/_8sdp"
  101. android:layout_marginBottom="@dimen/_8sdp"
  102. motion:layout_constraintBottom_toBottomOf="parent"
  103. motion:layout_constraintEnd_toEndOf="parent" />
  104. </ConstraintSet>
  105. <ConstraintSet android:id="@+id/end">
  106. <Constraint
  107. android:id="@+id/home_fragment_time"
  108. android:layout_width="wrap_content"
  109. android:layout_height="wrap_content"
  110. android:alpha="-1"
  111. motion:layout_constraintBottom_toTopOf="@+id/home_fragment_date"
  112. motion:layout_constraintEnd_toEndOf="parent"
  113. motion:layout_constraintHorizontal_bias="0.5"
  114. motion:layout_constraintStart_toStartOf="parent" />
  115. <Constraint
  116. android:id="@+id/home_fragment_time_format"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_marginTop="@dimen/_16sdp"
  120. android:alpha="-1"
  121. motion:layout_constraintStart_toEndOf="@+id/home_fragment_time"
  122. motion:layout_constraintTop_toTopOf="@+id/home_fragment_time" />
  123. <Constraint
  124. android:id="@+id/home_fragment_date"
  125. android:layout_width="wrap_content"
  126. android:layout_height="wrap_content"
  127. android:alpha="-1"
  128. motion:layout_constraintBottom_toTopOf="parent"
  129. motion:layout_constraintEnd_toEndOf="@+id/home_fragment_time"
  130. motion:layout_constraintStart_toStartOf="@+id/home_fragment_time" />
  131. <Constraint
  132. android:id="@+id/home_fragment_list"
  133. android:layout_width="0dp"
  134. android:layout_height="wrap_content"
  135. android:layout_marginStart="@dimen/_16sdp"
  136. android:layout_marginLeft="@dimen/_16sdp"
  137. android:layout_marginEnd="@dimen/_16sdp"
  138. android:layout_marginRight="@dimen/_16sdp"
  139. motion:layout_constraintBottom_toTopOf="@+id/home_fragment_list_exp"
  140. motion:layout_constraintEnd_toEndOf="parent"
  141. motion:layout_constraintHorizontal_bias="0.5"
  142. motion:layout_constraintStart_toStartOf="parent"
  143. motion:layout_constraintTop_toBottomOf="@+id/home_fragment_date"
  144. motion:layout_constraintVertical_chainStyle="packed" />
  145. <Constraint
  146. android:id="@+id/home_fragment_list_exp"
  147. android:layout_width="0dp"
  148. android:layout_height="wrap_content"
  149. android:layout_marginStart="@dimen/_16sdp"
  150. android:layout_marginLeft="@dimen/_16sdp"
  151. android:layout_marginEnd="@dimen/_16sdp"
  152. android:layout_marginRight="@dimen/_16sdp"
  153. android:layout_marginBottom="@dimen/_32sdp"
  154. motion:layout_constraintBottom_toBottomOf="parent"
  155. motion:layout_constraintEnd_toEndOf="parent"
  156. motion:layout_constraintHorizontal_bias="0.5"
  157. motion:layout_constraintStart_toStartOf="parent"
  158. motion:layout_constraintTop_toBottomOf="@+id/home_fragment_list" />
  159. <Constraint
  160. android:id="@+id/home_fragment_options"
  161. android:layout_width="wrap_content"
  162. android:layout_height="wrap_content"
  163. android:layout_marginStart="@dimen/_16sdp"
  164. android:layout_marginLeft="@dimen/_16sdp"
  165. android:layout_marginBottom="@dimen/_16sdp"
  166. motion:layout_constraintBottom_toBottomOf="parent"
  167. motion:layout_constraintStart_toStartOf="@+id/home_fragment_list_exp" />
  168. <Constraint
  169. android:id="@+id/home_fragment_call"
  170. android:layout_width="wrap_content"
  171. android:layout_height="wrap_content"
  172. android:layout_marginStart="@dimen/_8sdp"
  173. android:layout_marginLeft="@dimen/_8sdp"
  174. android:alpha="-1"
  175. motion:layout_constraintStart_toStartOf="parent"
  176. motion:layout_constraintTop_toBottomOf="parent" />
  177. <Constraint
  178. android:id="@+id/home_fragment_camera"
  179. android:layout_width="wrap_content"
  180. android:layout_height="wrap_content"
  181. android:layout_marginEnd="@dimen/_8sdp"
  182. android:layout_marginRight="@dimen/_8sdp"
  183. android:alpha="-1"
  184. motion:layout_constraintEnd_toEndOf="parent"
  185. motion:layout_constraintTop_toBottomOf="parent" />
  186. </ConstraintSet>
  187. </MotionScene>