fragment_timetable.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".ui.fragments.TimetableFragment">
  8. <androidx.recyclerview.widget.RecyclerView
  9. android:id="@+id/timetable"
  10. android:layout_width="0dp"
  11. android:layout_height="0dp"
  12. app:layout_constraintBottom_toBottomOf="parent"
  13. app:layout_constraintEnd_toEndOf="parent"
  14. app:layout_constraintStart_toStartOf="parent"
  15. app:layout_constraintTop_toBottomOf="@+id/timetable_toolbar">
  16. </androidx.recyclerview.widget.RecyclerView>
  17. <androidx.constraintlayout.widget.ConstraintLayout
  18. android:id="@+id/timetable_toolbar"
  19. android:layout_width="0dp"
  20. android:layout_height="56dp"
  21. android:background="@drawable/shape_top_toolbar"
  22. android:elevation="4dp"
  23. android:visibility="gone"
  24. app:layout_constraintEnd_toEndOf="parent"
  25. app:layout_constraintStart_toStartOf="parent"
  26. app:layout_constraintTop_toTopOf="parent">
  27. <ImageView
  28. android:id="@+id/back"
  29. android:layout_width="48dp"
  30. android:layout_height="48dp"
  31. android:scaleType="fitCenter"
  32. android:src="@drawable/img_arrow"
  33. app:layout_constraintBottom_toBottomOf="parent"
  34. app:layout_constraintStart_toStartOf="parent"
  35. app:layout_constraintTop_toTopOf="parent"
  36. app:tint="@color/primary"
  37. tools:ignore="ContentDescription,ImageContrastCheck" />
  38. <TextView
  39. android:id="@+id/timetable_title"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:text="@string/title"
  43. android:textAlignment="center"
  44. android:textSize="20sp"
  45. android:textStyle="bold"
  46. app:layout_constraintBottom_toBottomOf="parent"
  47. app:layout_constraintEnd_toEndOf="parent"
  48. app:layout_constraintStart_toStartOf="parent"
  49. app:layout_constraintTop_toTopOf="parent" />
  50. <ImageView
  51. android:id="@+id/previous"
  52. android:layout_width="32dp"
  53. android:layout_height="0dp"
  54. android:scaleType="centerInside"
  55. android:src="@drawable/img_arrow"
  56. app:layout_constraintBottom_toBottomOf="@+id/timetable_title"
  57. app:layout_constraintEnd_toStartOf="@+id/timetable_title"
  58. app:layout_constraintTop_toTopOf="@+id/timetable_title"
  59. app:tint="@color/text"
  60. tools:ignore="ContentDescription" />
  61. <ImageView
  62. android:id="@+id/next"
  63. android:layout_width="32dp"
  64. android:layout_height="0dp"
  65. android:rotation="180"
  66. android:scaleType="centerInside"
  67. android:src="@drawable/img_arrow"
  68. app:layout_constraintBottom_toBottomOf="@+id/timetable_title"
  69. app:layout_constraintStart_toEndOf="@+id/timetable_title"
  70. app:layout_constraintTop_toTopOf="@+id/timetable_title"
  71. app:tint="@color/text"
  72. tools:ignore="ContentDescription" />
  73. </androidx.constraintlayout.widget.ConstraintLayout>
  74. </androidx.constraintlayout.widget.ConstraintLayout>