home_motion_01.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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/_42sdp"
  12. android:text="@string/main_placeholder_clock"
  13. android:textAppearance="@style/TextAppearance.AppCompat"
  14. android:textSize="@dimen/_40ssp"
  15. app:layout_constraintEnd_toEndOf="parent"
  16. app:layout_constraintHorizontal_bias="0.506"
  17. app:layout_constraintStart_toStartOf="parent"
  18. app:layout_constraintTop_toTopOf="parent" />
  19. <TextView
  20. android:id="@+id/home_fragment_date"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:padding="@dimen/_4sdp"
  24. android:text="@string/main_placeholder_date"
  25. android:textAppearance="@style/TextAppearance.AppCompat"
  26. android:textSize="@dimen/_12sdp"
  27. app:layout_constraintEnd_toEndOf="@+id/home_fragment_time"
  28. app:layout_constraintStart_toStartOf="@+id/home_fragment_time"
  29. app:layout_constraintTop_toBottomOf="@+id/home_fragment_time" />
  30. <androidx.recyclerview.widget.RecyclerView
  31. android:id="@+id/home_fragment_list"
  32. android:layout_width="0dp"
  33. android:layout_height="wrap_content"
  34. android:layout_marginStart="@dimen/_16sdp"
  35. android:layout_marginLeft="@dimen/_16sdp"
  36. android:layout_marginTop="8dp"
  37. android:layout_marginEnd="@dimen/_16sdp"
  38. android:layout_marginRight="@dimen/_16sdp"
  39. android:layout_marginBottom="@dimen/_8sdp"
  40. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  41. app:layout_constraintBottom_toBottomOf="parent"
  42. app:layout_constraintEnd_toEndOf="parent"
  43. app:layout_constraintHorizontal_bias="0.0"
  44. app:layout_constraintStart_toStartOf="parent"
  45. app:layout_constraintTop_toTopOf="parent"
  46. app:layout_constraintVertical_bias="0.55"
  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_marginTop="@dimen/_16sdp"
  56. android:layout_marginEnd="@dimen/_16sdp"
  57. android:layout_marginRight="@dimen/_16sdp"
  58. android:layout_marginBottom="@dimen/_8sdp"
  59. android:alpha="-2"
  60. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  61. app:layout_constraintEnd_toEndOf="parent"
  62. app:layout_constraintHorizontal_bias="0.5"
  63. app:layout_constraintStart_toStartOf="parent"
  64. app:layout_constraintTop_toBottomOf="parent"
  65. tools:itemCount="4"
  66. tools:listitem="@layout/main_fragment_list_item" />
  67. <TextView
  68. android:id="@+id/home_fragment_options"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:alpha="-3"
  72. android:padding="@dimen/_8sdp"
  73. android:text="@string/main_fragment_options"
  74. android:textAppearance="@style/TextAppearance.AppCompat"
  75. android:textSize="@dimen/_18ssp"
  76. app:layout_constraintBottom_toBottomOf="parent"
  77. app:layout_constraintStart_toStartOf="@+id/home_fragment_list_exp"
  78. app:layout_constraintTop_toBottomOf="@+id/home_fragment_list_exp" />
  79. <TextView
  80. android:id="@+id/home_fragment_apps"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:alpha="-3"
  84. android:padding="@dimen/_8sdp"
  85. android:text="@string/main_fragment_apps"
  86. android:textAppearance="@style/TextAppearance.AppCompat"
  87. android:textSize="@dimen/_18ssp"
  88. app:layout_constraintBottom_toBottomOf="parent"
  89. app:layout_constraintEnd_toEndOf="@+id/home_fragment_list_exp"
  90. app:layout_constraintTop_toBottomOf="@+id/home_fragment_list_exp" />
  91. <ImageView
  92. android:id="@+id/home_fragment_call"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_marginStart="@dimen/_8sdp"
  96. android:layout_marginLeft="@dimen/_8sdp"
  97. android:layout_marginBottom="@dimen/_8sdp"
  98. android:padding="@dimen/_8sdp"
  99. app:layout_constraintBottom_toBottomOf="parent"
  100. app:layout_constraintStart_toStartOf="parent"
  101. app:srcCompat="@drawable/ic_call"
  102. tools:ignore="ContentDescription" />
  103. <ImageView
  104. android:id="@+id/home_fragment_camera"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:layout_marginEnd="@dimen/_8sdp"
  108. android:layout_marginRight="@dimen/_8sdp"
  109. android:layout_marginBottom="@dimen/_8sdp"
  110. android:padding="@dimen/_8sdp"
  111. app:layout_constraintBottom_toBottomOf="parent"
  112. app:layout_constraintEnd_toEndOf="parent"
  113. app:srcCompat="@drawable/ic_photo_camera"
  114. tools:ignore="ContentDescription" />
  115. </androidx.constraintlayout.motion.widget.MotionLayout>