programme_view.xml 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:orientation="vertical" android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:layout_marginStart="8dp"
  8. android:layout_marginEnd="8dp"
  9. app:layout_constraintVertical_chainStyle="packed"
  10. >
  11. <androidx.constraintlayout.widget.ConstraintLayout
  12. android:id="@+id/hours"
  13. android:layout_width="wrap_content"
  14. android:layout_height="0dp"
  15. app:layout_constraintTop_toTopOf="parent"
  16. app:layout_constraintBottom_toBottomOf="parent"
  17. app:layout_constraintStart_toStartOf="parent"
  18. android:layout_marginTop="8dp"
  19. android:layout_marginBottom="8dp"
  20. app:layout_constraintVertical_chainStyle="packed"
  21. >
  22. <TextView
  23. android:id="@+id/programme_start"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toTopOf="parent"
  28. app:layout_constraintBottom_toTopOf="@id/programme_end"
  29. android:gravity="start"
  30. android:textColor="@color/whited"
  31. app:layout_constraintVertical_chainStyle="packed"
  32. />
  33. <TextView
  34. android:id="@+id/programme_end"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. app:layout_constraintTop_toBottomOf="@id/programme_start"
  38. app:layout_constraintBottom_toBottomOf="parent"
  39. app:layout_constraintStart_toStartOf="@id/programme_start"
  40. android:gravity="start"
  41. android:textColor="@color/whited"
  42. app:layout_constraintVertical_chainStyle="packed"
  43. />
  44. </androidx.constraintlayout.widget.ConstraintLayout>
  45. <TextView
  46. android:id="@+id/programme_name"
  47. android:layout_width="0dp"
  48. android:layout_height="wrap_content"
  49. android:minHeight="32sp"
  50. app:layout_constraintTop_toTopOf="@id/hours"
  51. app:layout_constraintBottom_toBottomOf="@id/hours"
  52. app:layout_constraintStart_toEndOf="@id/hours"
  53. app:layout_constraintEnd_toEndOf="parent"
  54. android:gravity="center_vertical"
  55. android:textSize="16sp"
  56. android:layout_marginStart="32dp"
  57. android:layout_marginLeft="32dp"
  58. android:textColor="@color/whited"
  59. android:layout_marginTop="8dp"
  60. android:layout_marginBottom="8dp"
  61. />
  62. <View
  63. android:id="@+id/divider"
  64. android:layout_width="match_parent"
  65. android:layout_height="1dp"
  66. android:background="?android:attr/listDivider"
  67. app:layout_constraintStart_toStartOf="parent"
  68. app:layout_constraintBottom_toBottomOf="parent"
  69. app:layout_constraintEnd_toEndOf="parent"/>
  70. </androidx.constraintlayout.widget.ConstraintLayout>