2020-05-01 17:38:19 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-02-14 22:23:52 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:id="@+id/relativeLayout2"
|
2017-12-11 19:45:28 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:background="?selectableItemBackground"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingTop="6dp"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:paddingEnd="12dp"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:paddingBottom="6dp"
|
2020-05-01 17:38:19 +02:00
|
|
|
tools:context=".ui.modules.timetable.TimetableAdapter">
|
2017-12-11 19:45:28 +01:00
|
|
|
|
2018-10-06 10:53:34 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemNumber"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:gravity="center"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:includeFontPadding="false"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:maxLength="2"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:textSize="32sp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:text="5" />
|
2017-12-11 19:45:28 +01:00
|
|
|
|
2018-10-06 10:53:34 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemSubject"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:layout_width="0dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_height="wrap_content"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="40dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:textSize="15sp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/timetableItemTimeStart"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:text="@tools:sample/lorem" />
|
2017-12-11 19:45:28 +01:00
|
|
|
|
2018-10-06 10:53:34 +02:00
|
|
|
<TextView
|
2019-10-03 21:13:01 +02:00
|
|
|
android:id="@+id/timetableItemTimeStart"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="13sp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/timetableItemNumber"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/timetableItemNumber"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="11:11" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemTimeFinish"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:maxLines="1"
|
2019-08-23 18:37:05 +00:00
|
|
|
android:textColor="?android:textColorSecondary"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:textSize="13sp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/timetableItemNumber"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/timetableItemNumber"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="12:00" />
|
2017-12-11 19:45:28 +01:00
|
|
|
|
2018-10-06 10:53:34 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemRoom"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:layout_marginStart="10dp"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="13sp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/timetableItemNumber"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/timetableItemTimeStart"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="22"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemTeacher"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:ellipsize="end"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:maxLines="1"
|
2019-08-23 18:37:05 +00:00
|
|
|
android:textColor="?android:textColorSecondary"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:textSize="13sp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/timetableItemNumber"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/timetableItemRoom"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="Agata Kowalska - Błaszczyk"
|
|
|
|
tools:visibility="gone" />
|
2017-12-11 19:45:28 +01:00
|
|
|
|
2019-10-03 21:13:01 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemDescription"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:layout_width="0dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:textColor="?colorTimetableChange"
|
|
|
|
android:textSize="13sp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/timetableItemTimeStart"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/timetableItemTimeFinish"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="Lekcja odwołana: uczniowie zwolnieni do domu"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-05-01 17:38:19 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|