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"
|
2020-10-10 02:53:25 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="40dp"
|
|
|
|
android:minHeight="40dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
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"
|
2020-05-20 16:06:24 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
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"
|
2020-05-20 16:06:24 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/timetableItemTimeBarrier"
|
2020-05-01 17:38:19 +02:00
|
|
|
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"
|
2020-09-27 16:33:36 +02:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemGroup"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="13sp"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/timetableItemTeacher"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/timetableItemRoom"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/timetableItemTimeFinish"
|
|
|
|
tools:text="(2/2)"
|
|
|
|
tools:visibility="visible" />
|
2019-10-03 21:13:01 +02:00
|
|
|
|
|
|
|
<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"
|
2020-09-27 16:33:36 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/timetableItemGroup"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="Agata Kowalska - Błaszczyk"
|
2020-09-27 16:33:36 +02:00
|
|
|
tools:visibility="visible" />
|
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"
|
2020-09-27 16:33:36 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/timetableItemTeacher"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/timetableItemTimeFinish"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="Lekcja odwołana: uczniowie zwolnieni do domu"
|
2021-04-05 15:07:29 +02:00
|
|
|
tools:visibility="gone" />
|
2019-10-03 21:13:01 +02:00
|
|
|
|
2020-05-20 16:06:24 +02:00
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/timetableItemTimeBarrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="start"
|
|
|
|
app:constraint_referenced_ids="timetableItemTimeUntil,timetableItemTimeLeft" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemTimeUntil"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:textColor="?colorPrimary"
|
|
|
|
android:textSize="13sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="za 15 min"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableItemTimeLeft"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:background="@drawable/background_timetable_time_left"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:includeFontPadding="false"
|
2020-05-20 23:08:32 +02:00
|
|
|
android:maxLines="1"
|
2020-05-20 16:06:24 +02:00
|
|
|
android:paddingLeft="7dp"
|
|
|
|
android:paddingTop="2dp"
|
2020-05-20 23:08:32 +02:00
|
|
|
android:paddingRight="7dp"
|
2020-05-20 16:06:24 +02:00
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:textColor="?colorOnPrimary"
|
|
|
|
android:textSize="13sp"
|
|
|
|
android:visibility="gone"
|
2020-05-20 23:08:32 +02:00
|
|
|
app:backgroundTint="?colorPrimary"
|
2020-05-20 16:06:24 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="jeszcze 15 min"
|
|
|
|
tools:visibility="visible" />
|
2020-05-01 17:38:19 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|