home_fragment.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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:id="@+id/home_fragment"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. app:layoutDescription="@xml/home_motion_scene">
  9. <TextView
  10. android:id="@+id/home_fragment_time"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:layout_marginTop="@dimen/_64sdp"
  14. android:text="@string/main_placeholder_clock"
  15. android:textAppearance="@style/TextAppearance.AppCompat"
  16. android:textSize="@dimen/_40ssp" />
  17. <TextView
  18. android:id="@+id/home_fragment_time_format"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:textAppearance="@style/TextAppearance.AppCompat"
  22. android:textSize="@dimen/_13sdp" />
  23. <TextView
  24. android:id="@+id/home_fragment_date"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:padding="@dimen/_4sdp"
  28. android:text="@string/main_placeholder_date"
  29. android:textAppearance="@style/TextAppearance.AppCompat"
  30. android:textSize="@dimen/_12sdp" />
  31. <androidx.recyclerview.widget.RecyclerView
  32. android:id="@+id/home_fragment_list"
  33. android:layout_width="0dp"
  34. android:layout_height="wrap_content"
  35. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  36. tools:itemCount="4"
  37. tools:listitem="@layout/main_fragment_list_item" />
  38. <androidx.recyclerview.widget.RecyclerView
  39. android:id="@+id/home_fragment_list_exp"
  40. android:layout_width="0dp"
  41. android:layout_height="wrap_content"
  42. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  43. tools:itemCount="3"
  44. tools:listitem="@layout/main_fragment_list_item" />
  45. <TextView
  46. android:id="@+id/home_fragment_options"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:padding="@dimen/_8sdp"
  50. android:text="@string/main_fragment_options"
  51. android:textAppearance="@style/TextAppearance.AppCompat"
  52. android:textSize="@dimen/_18ssp" />
  53. <TextView
  54. android:id="@+id/home_fragment_notes"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:padding="8dp"
  58. android:text="@string/main_fragment_notes"
  59. android:textAppearance="@style/TextAppearance.AppCompat"
  60. android:textSize="@dimen/_18ssp" />
  61. <ImageView
  62. android:id="@+id/home_fragment_call"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:padding="@dimen/_8sdp"
  66. app:srcCompat="@drawable/ic_call"
  67. tools:ignore="ContentDescription" />
  68. <ImageView
  69. android:id="@+id/home_fragment_camera"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:padding="@dimen/_8sdp"
  73. app:srcCompat="@drawable/ic_photo_camera"
  74. tools:ignore="ContentDescription" />
  75. </androidx.constraintlayout.motion.widget.MotionLayout>