diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceDialog.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceDialog.kt index 8b6526cd..d816d8f0 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceDialog.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/attendance/AttendanceDialog.kt @@ -44,10 +44,10 @@ class AttendanceDialog : DialogFragment() { super.onViewCreated(view, savedInstanceState) with(binding) { - attendanceDialogSubject.text = attendance.subject - attendanceDialogDescription.setText(attendance.description) - attendanceDialogDate.text = attendance.date.toFormattedString() - attendanceDialogNumber.text = attendance.number.toString() + attendanceDialogSubjectValue.text = attendance.subject + attendanceDialogDescriptionValue.setText(attendance.description) + attendanceDialogDateValue.text = attendance.date.toFormattedString() + attendanceDialogNumberValue.text = attendance.number.toString() attendanceDialogClose.setOnClickListener { dismiss() } } } diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/mobiledevice/token/MobileDeviceTokenDialog.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/mobiledevice/token/MobileDeviceTokenDialog.kt index 6357c495..eb420a6a 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/mobiledevice/token/MobileDeviceTokenDialog.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/mobiledevice/token/MobileDeviceTokenDialog.kt @@ -52,15 +52,15 @@ class MobileDeviceTokenDialog : BaseDialogFragment(), } override fun updateData(token: MobileDeviceToken) { - with(binding.mobileDeviceDialogToken) { + with(binding.mobileDeviceDialogTokenValue) { text = token.token setOnClickListener { clickCopy(token.token) } } - with(binding.mobileDeviceDialogSymbol) { + with(binding.mobileDeviceDialogSymbolValue) { text = token.symbol setOnClickListener { clickCopy(token.symbol) } } - with(binding.mobileDeviceDialogPin) { + with(binding.mobileDeviceDialogPinValue) { text = token.pin setOnClickListener { clickCopy(token.pin) } } diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteDialog.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteDialog.kt index 4cb1cda0..5811456b 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteDialog.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteDialog.kt @@ -49,14 +49,14 @@ class NoteDialog : DialogFragment() { super.onViewCreated(view, savedInstanceState) with(binding) { - noteDialogDate.text = note.date.toFormattedString() - noteDialogCategory.text = note.category - noteDialogTeacher.text = note.teacher - noteDialogContent.text = note.content + noteDialogDateValue.text = note.date.toFormattedString() + noteDialogCategoryValue.text = note.category + noteDialogTeacherValue.text = note.teacher + noteDialogContentValue.text = note.content } if (note.isPointsShow) { - with(binding.noteDialogPoints) { + with(binding.noteDialogPointsValue) { text = "${if (note.points > 0) "+" else ""}${note.points}" setTextColor( when (NoteCategory.getByValue(note.categoryType)) { diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableDialog.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableDialog.kt index 7744515d..f8be9a35 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableDialog.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/TimetableDialog.kt @@ -63,13 +63,13 @@ class TimetableDialog : DialogFragment() { private fun setSubject(subject: String, subjectOld: String) { with(binding) { - timetableDialogSubject.text = subject + timetableDialogLessonValue.text = subject if (subjectOld.isNotBlank() && subjectOld != subject) { - timetableDialogSubject.run { + timetableDialogLessonValue.run { paintFlags = paintFlags or STRIKE_THRU_TEXT_FLAG text = subjectOld } - timetableDialogSubjectNew.run { + timetableDialogLessonNewValue.run { visibility = VISIBLE text = subject } @@ -88,17 +88,17 @@ class TimetableDialog : DialogFragment() { R.attr.colorPrimary ) ) - timetableDialogChanges.setTextColor(requireContext().getThemeAttrColor(R.attr.colorPrimary)) + timetableDialogChangesValue.setTextColor(requireContext().getThemeAttrColor(R.attr.colorPrimary)) } else { timetableDialogChangesTitle.setTextColor( requireContext().getThemeAttrColor( R.attr.colorTimetableChange ) ) - timetableDialogChanges.setTextColor(requireContext().getThemeAttrColor(R.attr.colorTimetableChange)) + timetableDialogChangesValue.setTextColor(requireContext().getThemeAttrColor(R.attr.colorTimetableChange)) } - timetableDialogChanges.text = when { + timetableDialogChangesValue.text = when { canceled && !changes -> "Lekcja odwołana: $info" changes && teacher.isNotBlank() -> "Zastępstwo: $teacher" changes && teacher.isBlank() -> "Zastępstwo, ${info.decapitalize()}" @@ -107,7 +107,7 @@ class TimetableDialog : DialogFragment() { } else -> { timetableDialogChangesTitle.visibility = GONE - timetableDialogChanges.visibility = GONE + timetableDialogChangesValue.visibility = GONE } } } @@ -117,22 +117,22 @@ class TimetableDialog : DialogFragment() { with(binding) { when { teacherOld.isNotBlank() && teacherOld != teacher -> { - timetableDialogTeacher.run { + timetableDialogTeacherValue.run { visibility = VISIBLE paintFlags = paintFlags or STRIKE_THRU_TEXT_FLAG text = teacherOld } if (teacher.isNotBlank()) { - timetableDialogTeacherNew.run { + timetableDialogTeacherNewValue.run { visibility = VISIBLE text = teacher } } } - teacher.isNotBlank() -> timetableDialogTeacher.text = teacher + teacher.isNotBlank() -> timetableDialogTeacherValue.text = teacher else -> { timetableDialogTeacherTitle.visibility = GONE - timetableDialogTeacher.visibility = GONE + timetableDialogTeacherValue.visibility = GONE } } } @@ -141,10 +141,10 @@ class TimetableDialog : DialogFragment() { private fun setGroup(group: String) { with(binding) { when { - group.isNotBlank() -> timetableDialogGroup.text = group + group.isNotBlank() -> timetableDialogGroupValue.text = group else -> { timetableDialogGroupTitle.visibility = GONE - timetableDialogGroup.visibility = GONE + timetableDialogGroupValue.visibility = GONE } } } @@ -154,22 +154,22 @@ class TimetableDialog : DialogFragment() { with(binding) { when { roomOld.isNotBlank() && roomOld != room -> { - timetableDialogRoom.run { + timetableDialogRoomValue.run { visibility = VISIBLE paintFlags = paintFlags or STRIKE_THRU_TEXT_FLAG text = roomOld } if (room.isNotBlank()) { - timetableDialogRoomNew.run { + timetableDialogRoomNewValue.run { visibility = VISIBLE text = room } } } - room.isNotBlank() -> timetableDialogRoom.text = room + room.isNotBlank() -> timetableDialogRoomValue.text = room else -> { timetableDialogRoomTitle.visibility = GONE - timetableDialogRoom.visibility = GONE + timetableDialogRoomValue.visibility = GONE } } } @@ -177,7 +177,7 @@ class TimetableDialog : DialogFragment() { @SuppressLint("SetTextI18n") private fun setTime(start: LocalDateTime, end: LocalDateTime) { - binding.timetableDialogTime.text = + binding.timetableDialogTimeValue.text = "${start.toFormattedString("HH:mm")} - ${end.toFormattedString("HH:mm")}" } } diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonDialog.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonDialog.kt index 258fc59d..7d32278f 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonDialog.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/timetable/completed/CompletedLessonDialog.kt @@ -42,39 +42,39 @@ class CompletedLessonDialog : DialogFragment() { super.onViewCreated(view, savedInstanceState) with(binding) { - completedLessonDialogSubject.text = completedLesson.subject - completedLessonDialogTopic.text = completedLesson.topic - completedLessonDialogTeacher.text = completedLesson.teacher - completedLessonDialogAbsence.text = completedLesson.absence - completedLessonDialogChanges.text = completedLesson.substitution - completedLessonDialogResources.text = completedLesson.resources + completedLessonDialogSubjectValue.text = completedLesson.subject + completedLessonDialogTopicValue.text = completedLesson.topic + completedLessonDialogTeacherValue.text = completedLesson.teacher + completedLessonDialogAbsenceValue.text = completedLesson.absence + completedLessonDialogChangesValue.text = completedLesson.substitution + completedLessonDialogResourcesValue.text = completedLesson.resources } completedLesson.substitution.let { if (it.isBlank()) { with(binding) { completedLessonDialogChangesTitle.visibility = View.GONE - completedLessonDialogChanges.visibility = View.GONE + completedLessonDialogChangesValue.visibility = View.GONE } - } else binding.completedLessonDialogChanges.text = it + } else binding.completedLessonDialogChangesValue.text = it } completedLesson.absence.let { if (it.isBlank()) { with(binding) { completedLessonDialogAbsenceTitle.visibility = View.GONE - completedLessonDialogAbsence.visibility = View.GONE + completedLessonDialogAbsenceValue.visibility = View.GONE } - } else binding.completedLessonDialogAbsence.text = it + } else binding.completedLessonDialogAbsenceValue.text = it } completedLesson.resources.let { if (it.isBlank()) { with(binding) { completedLessonDialogResourcesTitle.visibility = View.GONE - completedLessonDialogResources.visibility = View.GONE + completedLessonDialogResourcesValue.visibility = View.GONE } - } else binding.completedLessonDialogResources.text = it + } else binding.completedLessonDialogResourcesValue.text = it } binding.completedLessonDialogClose.setOnClickListener { dismiss() } diff --git a/app/src/main/res/layout/dialog_attendance.xml b/app/src/main/res/layout/dialog_attendance.xml index 22268aac..08ed9d4a 100644 --- a/app/src/main/res/layout/dialog_attendance.xml +++ b/app/src/main/res/layout/dialog_attendance.xml @@ -1,92 +1,178 @@ - + android:paddingStart="24dp" + android:paddingEnd="8dp"> + + + android:textSize="21sp" + android:textStyle="bold" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/allDetailsHeader" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogSubjectTitle" /> + + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogSubjectValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogDescriptionTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogDescriptionValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogDateTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogDateValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogNumberTitle" /> - + android:layout_height="36dp" + android:layout_marginTop="36dp" + android:layout_marginEnd="0dp" + android:layout_marginBottom="8dp" + android:insetLeft="0dp" + android:insetTop="0dp" + android:insetRight="0dp" + android:insetBottom="0dp" + android:minWidth="88dp" + android:text="@string/all_close" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/attendanceDialogNumberValue" /> + diff --git a/app/src/main/res/layout/dialog_error.xml b/app/src/main/res/layout/dialog_error.xml index 2d4e5d0b..0d79e19e 100644 --- a/app/src/main/res/layout/dialog_error.xml +++ b/app/src/main/res/layout/dialog_error.xml @@ -10,9 +10,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingHorizontal="20dp" - android:paddingTop="20dp" + android:paddingTop="24dp" android:text="@string/all_details" - android:textSize="20sp" /> + android:textSize="21sp" + android:textStyle="bold"/> diff --git a/app/src/main/res/layout/dialog_exam.xml b/app/src/main/res/layout/dialog_exam.xml index 8e46dc4f..51153ac8 100644 --- a/app/src/main/res/layout/dialog_exam.xml +++ b/app/src/main/res/layout/dialog_exam.xml @@ -1,113 +1,208 @@ - + android:paddingStart="24dp" + android:paddingEnd="8dp"> + + + android:textSize="21sp" + android:textStyle="bold" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/allDetailsHeader" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogSubjectTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogSubjectValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogTypeTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogTypeValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogTeacherTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogTeacherValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogDateTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogDateValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogDescriptionTitle" /> - + android:layout_height="36dp" + android:layout_marginTop="36dp" + android:layout_marginEnd="0dp" + android:layout_marginBottom="8dp" + android:insetLeft="0dp" + android:insetTop="0dp" + android:insetRight="0dp" + android:insetBottom="0dp" + android:minWidth="88dp" + android:text="@string/all_close" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/examDialogDescriptionValue" /> + diff --git a/app/src/main/res/layout/dialog_grade.xml b/app/src/main/res/layout/dialog_grade.xml index be0570c2..9ed2bc06 100644 --- a/app/src/main/res/layout/dialog_grade.xml +++ b/app/src/main/res/layout/dialog_grade.xml @@ -8,19 +8,20 @@ + android:minWidth="300dp" + android:paddingStart="24dp" + android:paddingEnd="8dp"> + android:textSize="21sp" + android:textStyle="bold" /> - - - - - - - - - - - - + android:textColor="?android:textColorSecondary" + android:textSize="12sp" /> + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/dialog_homework.xml b/app/src/main/res/layout/dialog_homework.xml index 7c149d4b..b5687c0a 100644 --- a/app/src/main/res/layout/dialog_homework.xml +++ b/app/src/main/res/layout/dialog_homework.xml @@ -26,7 +26,15 @@ android:id="@+id/homeworkDialogRead" style="@style/Widget.MaterialComponents.Button.TextButton" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="36dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" + android:insetLeft="0dp" + android:insetTop="0dp" + android:insetRight="0dp" + android:insetBottom="0dp" + android:minWidth="88dp" android:layout_alignParentStart="true" android:layout_alignParentBottom="true" android:text="@string/homework_mark_as_done" @@ -37,7 +45,15 @@ android:id="@+id/homeworkDialogClose" style="@style/Widget.MaterialComponents.Button.TextButton" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="36dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" + android:insetLeft="0dp" + android:insetTop="0dp" + android:insetRight="0dp" + android:insetBottom="0dp" + android:minWidth="88dp" android:layout_alignParentEnd="true" android:layout_alignParentBottom="true" android:text="@string/all_close" diff --git a/app/src/main/res/layout/dialog_lesson_completed.xml b/app/src/main/res/layout/dialog_lesson_completed.xml index 31ca7dd3..500cdb6f 100644 --- a/app/src/main/res/layout/dialog_lesson_completed.xml +++ b/app/src/main/res/layout/dialog_lesson_completed.xml @@ -1,145 +1,245 @@ - + android:paddingStart="24dp" + android:paddingEnd="8dp"> + + + android:textSize="21sp" + android:textStyle="bold" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/allDetailsHeader" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogSubjectTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogSubjectValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogTopicTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogTopicValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogTeacherTitle" /> + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogTeacherValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogChangesTitle" /> + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogChangesValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogAbsenceTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogAbsenceValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogResourcesTitle" /> + android:layout_height="36dp" + android:layout_marginTop="36dp" + android:layout_marginEnd="0dp" + android:layout_marginBottom="8dp" + android:insetLeft="0dp" + android:insetTop="0dp" + android:insetRight="0dp" + android:insetBottom="0dp" + android:minWidth="88dp" + android:text="@string/all_close" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/completedLessonDialogResourcesValue" /> - + diff --git a/app/src/main/res/layout/dialog_mobile_device.xml b/app/src/main/res/layout/dialog_mobile_device.xml index 680f5719..2ec89aee 100644 --- a/app/src/main/res/layout/dialog_mobile_device.xml +++ b/app/src/main/res/layout/dialog_mobile_device.xml @@ -1,97 +1,158 @@ - + android:orientation="vertical"> - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + tools:visibility="visible" + app:constraint_referenced_ids="mobileDeviceQr,mobileDeviceDialogTokenTitle,mobileDeviceDialogTokenValue,mobileDeviceDialogSymbolTitle,mobileDeviceDialogSymbolValue,mobileDeviceDialogPinTitle,mobileDeviceDialogPinValue,mobileDeviceDialogClose" /> - + tools:visibility="invisible" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" /> + + diff --git a/app/src/main/res/layout/dialog_note.xml b/app/src/main/res/layout/dialog_note.xml index 71506b01..57a4ad82 100644 --- a/app/src/main/res/layout/dialog_note.xml +++ b/app/src/main/res/layout/dialog_note.xml @@ -1,109 +1,209 @@ - + android:paddingStart="24dp" + android:paddingEnd="8dp"> + + + android:textSize="21sp" + android:textStyle="bold" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/allDetailsHeader" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogCategoryTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogCategoryValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogTeacherTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogTeacherValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogDateTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogDateValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogPointsTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogPointsValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogContentTitle" /> - + android:layout_height="36dp" + android:layout_marginTop="36dp" + android:layout_marginEnd="0dp" + android:layout_marginBottom="8dp" + android:insetLeft="0dp" + android:insetTop="0dp" + android:insetRight="0dp" + android:insetBottom="0dp" + android:minWidth="88dp" + android:text="@string/all_close" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/noteDialogContentValue" /> + diff --git a/app/src/main/res/layout/dialog_timetable.xml b/app/src/main/res/layout/dialog_timetable.xml index f3d4cf1c..04a5c0c1 100644 --- a/app/src/main/res/layout/dialog_timetable.xml +++ b/app/src/main/res/layout/dialog_timetable.xml @@ -1,167 +1,298 @@ + android:layout_height="match_parent"> - + android:paddingStart="24dp" + android:paddingEnd="8dp"> + + + android:textSize="21sp" + android:textStyle="bold" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - - - - - - - - + + + + + + + + + tools:visibility="visible" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogLessonValue" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogLessonNewValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogTeacherTitle" /> + tools:visibility="visible" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogTeacherValue" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogTeacherNewValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogGroupTitle" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogGroupValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogRoomTitle" /> + tools:visibility="visible" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogRoomValue" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogRoomNewValue" /> + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogTimeTitle" /> - + android:layout_height="36dp" + android:layout_marginTop="36dp" + android:layout_marginEnd="0dp" + android:layout_marginBottom="8dp" + android:insetLeft="0dp" + android:insetTop="0dp" + android:insetRight="0dp" + android:insetBottom="0dp" + android:minWidth="88dp" + android:text="@string/all_close" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/timetableDialogTimeValue" /> + diff --git a/app/src/main/res/layout/item_homework_dialog_attachment.xml b/app/src/main/res/layout/item_homework_dialog_attachment.xml index ec0b37f2..1c2877d2 100644 --- a/app/src/main/res/layout/item_homework_dialog_attachment.xml +++ b/app/src/main/res/layout/item_homework_dialog_attachment.xml @@ -3,18 +3,18 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?selectableItemBackground" - android:paddingStart="20dp" - android:paddingTop="3dp" - android:paddingEnd="10dp" - android:paddingBottom="3dp"> + android:background="?selectableItemBackground"> diff --git a/app/src/main/res/layout/item_homework_dialog_attachments_header.xml b/app/src/main/res/layout/item_homework_dialog_attachments_header.xml index 383cbeaf..dfe9db90 100644 --- a/app/src/main/res/layout/item_homework_dialog_attachments_header.xml +++ b/app/src/main/res/layout/item_homework_dialog_attachments_header.xml @@ -7,8 +7,10 @@ + android:textColor="?android:textColorSecondary" + android:textSize="12sp" /> diff --git a/app/src/main/res/layout/item_homework_dialog_details.xml b/app/src/main/res/layout/item_homework_dialog_details.xml index 3b5705bf..abc371da 100644 --- a/app/src/main/res/layout/item_homework_dialog_details.xml +++ b/app/src/main/res/layout/item_homework_dialog_details.xml @@ -4,121 +4,162 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingStart="20dp" - android:paddingTop="20dp" - android:paddingEnd="20dp"> + android:paddingStart="24dp" + android:paddingEnd="24dp"> - + android:orientation="horizontal" > - - - + + + + + + + + android:textColor="?android:textColorSecondary" + android:textSize="12sp" /> + android:textSize="16sp" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" /> + android:textSize="16sp" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" /> + android:textSize="16sp" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" /> + android:textSize="16sp" /> + android:textColor="?android:textColorSecondary" + android:textSize="12sp" /> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index b2e0dcef..a68e2710 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -24,7 +24,7 @@ #a0c431 #d43f3f - #424242 + #1C1C1C #d43f3f #49a6f2 #a0c431