home_motion_02.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7. <TextView
  8. android:id="@+id/home_fragment_time"
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:layout_marginTop="@dimen/_64sdp"
  12. android:alpha="-1"
  13. android:text="@string/main_placeholder_clock"
  14. android:textAppearance="@style/TextAppearance.AppCompat"
  15. android:textSize="@dimen/_40ssp"
  16. app:layout_constraintBottom_toTopOf="@+id/home_fragment_date"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. app:layout_constraintHorizontal_bias="0.5"
  19. app:layout_constraintStart_toStartOf="parent" />
  20. <TextView
  21. android:id="@+id/home_fragment_date"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:alpha="-1"
  25. android:padding="@dimen/_4sdp"
  26. android:text="@string/main_placeholder_date"
  27. android:textAppearance="@style/TextAppearance.AppCompat"
  28. android:textSize="@dimen/_12sdp"
  29. app:layout_constraintBottom_toTopOf="parent"
  30. app:layout_constraintEnd_toEndOf="@+id/home_fragment_time"
  31. app:layout_constraintStart_toStartOf="@+id/home_fragment_time" />
  32. <androidx.recyclerview.widget.RecyclerView
  33. android:id="@+id/home_fragment_list"
  34. android:layout_width="0dp"
  35. android:layout_height="wrap_content"
  36. android:layout_marginStart="@dimen/_16sdp"
  37. android:layout_marginLeft="@dimen/_16sdp"
  38. android:layout_marginEnd="@dimen/_16sdp"
  39. android:layout_marginRight="@dimen/_16sdp"
  40. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  41. app:layout_constraintBottom_toTopOf="@+id/home_fragment_list_exp"
  42. app:layout_constraintEnd_toEndOf="parent"
  43. app:layout_constraintHorizontal_bias="0.5"
  44. app:layout_constraintStart_toStartOf="parent"
  45. app:layout_constraintTop_toBottomOf="@+id/home_fragment_date"
  46. app:layout_constraintVertical_chainStyle="packed"
  47. tools:itemCount="4"
  48. tools:listitem="@layout/main_fragment_list_item" />
  49. <androidx.recyclerview.widget.RecyclerView
  50. android:id="@+id/home_fragment_list_exp"
  51. android:layout_width="0dp"
  52. android:layout_height="wrap_content"
  53. android:layout_marginStart="@dimen/_16sdp"
  54. android:layout_marginLeft="@dimen/_16sdp"
  55. android:layout_marginEnd="@dimen/_16sdp"
  56. android:layout_marginRight="@dimen/_16sdp"
  57. android:layout_marginBottom="@dimen/_32sdp"
  58. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  59. app:layout_constraintBottom_toBottomOf="parent"
  60. app:layout_constraintEnd_toEndOf="parent"
  61. app:layout_constraintHorizontal_bias="0.5"
  62. app:layout_constraintStart_toStartOf="parent"
  63. app:layout_constraintTop_toBottomOf="@+id/home_fragment_list"
  64. tools:itemCount="3"
  65. tools:listitem="@layout/main_fragment_list_item" />
  66. <TextView
  67. android:id="@+id/home_fragment_options"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_marginStart="@dimen/_16sdp"
  71. android:layout_marginLeft="@dimen/_16sdp"
  72. android:layout_marginBottom="@dimen/_16sdp"
  73. android:padding="@dimen/_8sdp"
  74. android:text="@string/main_fragment_options"
  75. android:textAppearance="@style/TextAppearance.AppCompat"
  76. android:textSize="@dimen/_18ssp"
  77. app:layout_constraintBottom_toBottomOf="parent"
  78. app:layout_constraintStart_toStartOf="@+id/home_fragment_list_exp" />
  79. <ImageView
  80. android:id="@+id/home_fragment_call"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_marginStart="@dimen/_8sdp"
  84. android:layout_marginLeft="@dimen/_8sdp"
  85. android:alpha="-1"
  86. android:padding="@dimen/_8sdp"
  87. app:layout_constraintStart_toStartOf="parent"
  88. app:layout_constraintTop_toBottomOf="parent"
  89. app:srcCompat="@drawable/ic_call"
  90. tools:ignore="ContentDescription" />
  91. <ImageView
  92. android:id="@+id/home_fragment_camera"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_marginEnd="@dimen/_8sdp"
  96. android:layout_marginRight="@dimen/_8sdp"
  97. android:alpha="-1"
  98. android:padding="@dimen/_8sdp"
  99. app:layout_constraintEnd_toEndOf="parent"
  100. app:layout_constraintTop_toBottomOf="parent"
  101. app:srcCompat="@drawable/ic_photo_camera"
  102. tools:ignore="ContentDescription" />
  103. </androidx.constraintlayout.motion.widget.MotionLayout>