diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt
index 92044328..bc5637eb 100644
--- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt
+++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt
@@ -129,10 +129,10 @@ class TimetableDayFragment(val date: Date) : Fragment() {
//lb.subjectName.typeface = Typeface.create("sans-serif-light", Typeface.BOLD)
when (lesson.type) {
Lesson.TYPE_NORMAL -> {
- lb.annotation.visibility = View.GONE
+ lb.annotationVisible = false
}
Lesson.TYPE_CANCELLED -> {
- lb.annotation.visibility = View.VISIBLE
+ lb.annotationVisible = true
lb.annotation.setText(R.string.timetable_lesson_cancelled)
lb.annotation.background.colorFilter = PorterDuffColorFilter(
getColorFromAttr(activity, R.attr.timetable_lesson_cancelled_color),
@@ -141,7 +141,7 @@ class TimetableDayFragment(val date: Date) : Fragment() {
//lb.subjectName.typeface = Typeface.DEFAULT
}
Lesson.TYPE_CHANGE -> {
- lb.annotation.visibility = View.VISIBLE
+ lb.annotationVisible = true
if (lesson.subjectId != lesson.oldSubjectId && lesson.teacherId != lesson.oldTeacherId) {
lb.annotation.setText(
R.string.timetable_lesson_change_format,
diff --git a/app/src/main/res/drawable/timetable_lesson_annotation.xml b/app/src/main/res/drawable/timetable_lesson_annotation.xml
index b22dc045..4c89f473 100644
--- a/app/src/main/res/drawable/timetable_lesson_annotation.xml
+++ b/app/src/main/res/drawable/timetable_lesson_annotation.xml
@@ -1,7 +1,11 @@
+
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/timetable_subject_color_rounded.xml b/app/src/main/res/drawable/timetable_subject_color_rounded.xml
new file mode 100644
index 00000000..5466dfa2
--- /dev/null
+++ b/app/src/main/res/drawable/timetable_subject_color_rounded.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/timetable_lesson.xml b/app/src/main/res/layout/timetable_lesson.xml
index 4b857f8f..5fadc319 100644
--- a/app/src/main/res/layout/timetable_lesson.xml
+++ b/app/src/main/res/layout/timetable_lesson.xml
@@ -2,6 +2,11 @@
+
+
+
+ android:visibility="@{annotationVisible ? View.VISIBLE : View.GONE}"
+ tools:text="Zastępstwo: zamiast lekcji język polski z Adam Dodatkowy"
+ tools:visibility="gone" />
+ android:orientation="horizontal"
+ android:baselineAligned="false">
+
+ app:autoSizeMaxTextSize="16sp"
+ app:autoSizeMinTextSize="12sp"
+ app:autoSizeTextType="uniform"
+ tools:maxLines="2"
+ tools:text="pracownia urządzeń techniki komputerowej" />
+
+
+ android:paddingEnd="8dp">