notes_fragment.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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/notes_fragment"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".ui.notes.NotesFragment">
  9. <TextView
  10. android:id="@+id/notes_fragment_title"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:layout_marginStart="16dp"
  14. android:layout_marginLeft="16dp"
  15. android:layout_marginTop="@dimen/_8sdp"
  16. android:text="@string/main_fragment_notes"
  17. android:textAppearance="@style/TextAppearance.AppCompat"
  18. android:textSize="@dimen/_36ssp"
  19. app:layout_constraintStart_toStartOf="parent"
  20. app:layout_constraintTop_toTopOf="parent" />
  21. <TextView
  22. android:id="@+id/notes_fragment_create_note"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_marginTop="16dp"
  26. android:layout_marginEnd="16dp"
  27. android:layout_marginRight="16dp"
  28. android:padding="12dp"
  29. android:text="@string/notes_fragment_create_new_note"
  30. android:textSize="18sp"
  31. app:layout_constraintEnd_toEndOf="parent"
  32. app:layout_constraintTop_toTopOf="parent" />
  33. <androidx.recyclerview.widget.RecyclerView
  34. android:id="@+id/notes_fragment_list"
  35. android:layout_width="0dp"
  36. android:layout_height="0dp"
  37. android:layout_marginTop="@dimen/_8sdp"
  38. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  39. app:layout_constraintBottom_toBottomOf="parent"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. app:layout_constraintStart_toStartOf="parent"
  42. app:layout_constraintTop_toBottomOf="@+id/notes_fragment_create_note"
  43. tools:listitem="@layout/notes_fragment_list_item">
  44. </androidx.recyclerview.widget.RecyclerView>
  45. <TextView
  46. android:id="@+id/notes_fragment_counter"
  47. android:layout_width="0dp"
  48. android:layout_height="0dp"
  49. android:background="?attr/colorPrimary"
  50. android:gravity="center"
  51. android:textSize="@dimen/_64ssp"
  52. app:layout_constraintEnd_toEndOf="parent"
  53. app:layout_constraintStart_toStartOf="parent"
  54. app:layout_constraintBottom_toBottomOf="parent"
  55. app:layout_constraintTop_toBottomOf="@+id/notes_fragment_create_note"
  56. tools:visibility="gone" />
  57. </androidx.constraintlayout.widget.ConstraintLayout>