Add support for BIG font
MODIFY
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
-<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/mainContainer"
android:layout_width="match_parent"
style="@style/Widget.MaterialComponents.Toolbar.Surface"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- app:contentInsetStartWithNavigation="0dp" />
+ app:contentInsetStartWithNavigation="0dp"
+ app:layout_constraintTop_toTopOf="parent" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/mainFragmentContainer"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="?actionBarSize"
- android:layout_marginBottom="@dimen/bottom_navigation_height" />
+ android:layout_height="0dp"
+ app:layout_constraintBottom_toTopOf="@id/mainBottomNav"
+ app:layout_constraintTop_toBottomOf="@id/mainToolbar" />
<com.aurelhubert.ahbottomnavigation.AHBottomNavigation
android:id="@+id/mainBottomNav"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="bottom" />
-</androidx.coordinatorlayout.widget.CoordinatorLayout>
+ app:layout_constraintBottom_toBottomOf="parent" />
+</androidx.constraintlayout.widget.ConstraintLayout>

MODIFY
app/src/main/res/layout/item_about.xml
app/src/main/res/layout/item_about.xml
<TextView
android:id="@+id/aboutItemSummary"
android:layout_width="wrap_content"
- android:layout_height="20dp"
+ android:layout_height="wrap_content"
+ android:minHeight="20dp"
android:layout_below="@id/aboutItemTitle"
android:layout_marginEnd="16dp"
android:layout_toEndOf="@id/aboutItemImage"

MODIFY
app/src/main/res/layout/item_attendance.xml
app/src/main/res/layout/item_attendance.xml
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/attendanceItemContainer"
<LinearLayout
android:id="@+id/attendanceItemNumberContainer"
- android:layout_width="40dp"
- android:layout_height="40dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:minWidth="40dp"
+ android:minHeight="40dp"
android:gravity="center"
- android:orientation="vertical">
+ android:orientation="vertical"
+ app:layout_constraintBottom_toBottomOf="@+id/attendanceItemDetailsContainer"
+ app:layout_constraintEnd_toStartOf="@+id/attendanceItemDetailsContainer"
+ app:layout_constraintHorizontal_bias="0.5"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="@+id/attendanceItemDetailsContainer">
<TextView
android:id="@+id/attendanceItemNumber"
app:tint="?attr/colorOnSurface" />
</LinearLayout>
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/attendanceItemDetailsContainer"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:layout_marginEnd="10dp"
+ app:layout_constraintEnd_toStartOf="@+id/attendanceItemAlert"
+ app:layout_constraintHorizontal_bias="0.5"
+ app:layout_constraintStart_toEndOf="@+id/attendanceItemNumberContainer"
+ app:layout_constraintTop_toTopOf="parent">
+
<TextView
android:id="@+id/attendanceItemSubject"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
- android:layout_marginStart="10dp"
- android:layout_marginEnd="40dp"
- android:layout_toStartOf="@id/attendanceItemAlert"
- android:layout_toEndOf="@+id/attendanceItemNumberContainer"
android:ellipsize="end"
android:maxLines="1"
android:textSize="17sp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
tools:text="Matematyka" />
<TextView
android:id="@+id/attendanceItemDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignStart="@id/attendanceItemSubject"
- android:layout_alignBottom="@+id/attendanceItemNumberContainer"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
+ app:layout_constraintBottom_toBottomOf="@id/attendanceItemDetailsContainer"
+ app:layout_constraintStart_toStartOf="@id/attendanceItemDetailsContainer"
+ app:layout_constraintTop_toBottomOf="@id/attendanceItemSubject"
tools:text="Present" />
+ </androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/attendanceItemAlert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_marginTop="10dp"
+ app:layout_constraintBottom_toBottomOf="@+id/attendanceItemDetailsContainer"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHorizontal_bias="0.5"
+ app:layout_constraintStart_toEndOf="@+id/attendanceItemDetailsContainer"
+ app:layout_constraintTop_toTopOf="@+id/attendanceItemDetailsContainer"
app:srcCompat="@drawable/ic_all_mark"
app:tint="?colorPrimary"
tools:ignore="contentDescription" />
-</RelativeLayout>
+</androidx.constraintlayout.widget.ConstraintLayout>

MODIFY
app/src/main/res/layout/item_attendance_summary_subject.xml
app/src/main/res/layout/item_attendance_summary_subject.xml
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/attendanceSummaryItemSubject"
android:layout_width="match_parent"
- android:layout_height="48dp"
+ android:layout_height="wrap_content"
+ android:minHeight="48dp"
android:gravity="start"
android:maxLines="1"
android:paddingLeft="16dp"

MODIFY
app/src/main/res/layout/item_completed_lesson.xml
app/src/main/res/layout/item_completed_lesson.xml
<TextView
android:id="@+id/completedLessonItemNumber"
- android:layout_width="40dp"
- android:layout_height="40dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentStart="true"
+ android:minWidth="40dp"
+ android:minHeight="40dp"
android:layout_centerVertical="true"
android:gravity="center"
android:includeFontPadding="false"
android:id="@+id/completedLessonItemTopic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_below="@+id/completedLessonItemSubject"
android:layout_alignStart="@id/completedLessonItemSubject"
android:layout_alignEnd="@+id/completedLessonItemAlert"
- android:layout_alignBottom="@+id/completedLessonItemNumber"
android:layout_marginEnd="40dp"
android:ellipsize="end"
android:maxLines="1"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
- android:tint="?colorTimetableChange"
app:srcCompat="@drawable/ic_timetable_swap"
+ app:tint="?colorTimetableChange"
tools:ignore="contentDescription" />
</RelativeLayout>

MODIFY
app/src/main/res/layout/item_grade_details.xml
app/src/main/res/layout/item_grade_details.xml
<TextView
android:id="@+id/gradeItemValue"
- android:layout_width="45dp"
- android:layout_height="40dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
android:background="@color/grade_material_default"
android:gravity="center"
android:maxLength="5"
+ android:minWidth="45dp"
+ android:minHeight="40dp"
android:textColor="@android:color/white"
android:textSize="16sp"
- app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintBottom_toBottomOf="@+id/gradeDetailsContainer"
+ app:layout_constraintEnd_toStartOf="@+id/gradeDetailsContainer"
+ app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintTop_toTopOf="@+id/gradeDetailsContainer"
tools:text="6" />
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/gradeDetailsContainer"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@+id/gradeItemNote"
+ app:layout_constraintHorizontal_bias="0.5"
+ app:layout_constraintStart_toEndOf="@+id/gradeItemValue"
+ app:layout_constraintTop_toTopOf="parent">
+
<TextView
android:id="@+id/gradeItemDescription"
android:layout_width="0dp"
android:ellipsize="end"
android:maxLines="1"
android:textSize="14sp"
- app:layout_constraintEnd_toStartOf="@id/gradeItemNote"
- app:layout_constraintStart_toEndOf="@+id/gradeItemValue"
+ app:layout_constraintEnd_toEndOf="@id/gradeDetailsContainer"
+ app:layout_constraintStart_toStartOf="@id/gradeDetailsContainer"
app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/lorem" />
android:layout_height="wrap_content"
android:maxLines="1"
android:textSize="12sp"
- app:layout_constraintBottom_toBottomOf="@+id/gradeItemValue"
+ app:layout_constraintBottom_toBottomOf="@+id/gradeDetailsContainer"
app:layout_constraintStart_toStartOf="@+id/gradeItemDescription"
+ app:layout_constraintTop_toBottomOf="@+id/gradeItemDescription"
tools:text="@tools:sample/date/ddmmyy" />
<TextView
android:layout_marginEnd="20dp"
android:maxLines="1"
android:textSize="12sp"
- app:layout_constraintBottom_toBottomOf="@+id/gradeItemValue"
- app:layout_constraintEnd_toStartOf="@id/gradeItemNote"
+ app:layout_constraintBottom_toBottomOf="@+id/gradeDetailsContainer"
+ app:layout_constraintEnd_toEndOf="@id/gradeDetailsContainer"
app:layout_constraintStart_toEndOf="@+id/gradeItemDate"
+ app:layout_constraintTop_toBottomOf="@+id/gradeItemDescription"
tools:text="@tools:sample/lorem" />
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
<ImageView
android:id="@+id/gradeItemNote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
+ app:layout_constraintBottom_toBottomOf="@+id/gradeDetailsContainer"
app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintHorizontal_bias="0.5"
+ app:layout_constraintStart_toEndOf="@+id/gradeDetailsContainer"
+ app:layout_constraintTop_toTopOf="@+id/gradeDetailsContainer"
app:srcCompat="@drawable/ic_all_round_mark"
app:tint="?colorPrimary"
tools:ignore="contentDescription" />

MODIFY
app/src/main/res/layout/item_license.xml
app/src/main/res/layout/item_license.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="64dp"
+ android:layout_height="wrap_content"
+ android:minHeight="64dp"
android:background="?selectableItemBackground"
android:orientation="vertical"
android:paddingStart="16dp"
<TextView
android:id="@+id/licenseItemName"
android:layout_width="match_parent"
- android:layout_height="28dp"
+ android:layout_height="wrap_content"
+ android:minHeight="28dp"
android:ellipsize="end"
android:gravity="bottom"
android:singleLine="true"
<TextView
android:id="@+id/licenseItemSummary"
android:layout_width="match_parent"
- android:layout_height="20dp"
+ android:layout_height="wrap_content"
+ android:minHeight="20dp"
android:gravity="bottom"
android:textColor="?android:textColorSecondary"
android:textSize="14sp"

MODIFY
app/src/main/res/layout/item_login_student_select.xml
app/src/main/res/layout/item_login_student_select.xml
<TextView
android:id="@+id/loginItemSignedIn"
android:layout_width="wrap_content"
- android:layout_height="20dp"
+ android:layout_height="wrap_content"
+ android:minHeight="20dp"
android:layout_below="@id/loginItemSchool"
android:layout_marginEnd="16dp"
android:layout_toEndOf="@id/loginItemCheck"

MODIFY
app/src/main/res/layout/item_mobile_device.xml
app/src/main/res/layout/item_mobile_device.xml
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mobileDevice_subitem_container"
android:layout_width="match_parent"
- android:layout_height="64dp"
+ android:layout_height="wrap_content"
+ android:minHeight="64dp"
tools:context=".ui.modules.mobiledevice.MobileDeviceAdapter">
<TextView
android:id="@+id/mobileDeviceItemName"
android:layout_width="match_parent"
- android:layout_height="32dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
android:layout_marginStart="16dp"
+ android:layout_marginTop="0dp"
android:layout_toStartOf="@id/mobileDeviceItemUnregister"
android:ellipsize="end"
android:gravity="bottom"
android:maxLines="1"
+ android:minHeight="32dp"
android:textSize="16sp"
tools:text="@tools:sample/lorem/random" />
<TextView
android:id="@+id/mobileDeviceItemDate"
android:layout_width="match_parent"
- android:layout_height="20dp"
+ android:layout_height="wrap_content"
+ android:minHeight="20dp"
android:layout_below="@id/mobileDeviceItemName"
android:layout_marginStart="16dp"
android:layout_toStartOf="@id/mobileDeviceItemUnregister"

MODIFY
app/src/main/res/layout/item_timetable.xml
app/src/main/res/layout/item_timetable.xml
<TextView
android:id="@+id/timetableItemNumber"
- android:layout_width="40dp"
- android:layout_height="40dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:minWidth="40dp"
+ android:minHeight="40dp"
android:gravity="center"
android:includeFontPadding="false"
android:maxLength="2"

MODIFY
app/src/main/res/layout/item_timetable_small.xml
app/src/main/res/layout/item_timetable_small.xml
<TextView
android:id="@+id/timetableSmallItemNumber"
- android:layout_width="40dp"
+ android:layout_width="wrap_content"
+ android:minWidth="40dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:gravity="center"

MODIFY
app/src/main/res/layout/item_widget_timetable_dark.xml
app/src/main/res/layout/item_widget_timetable_dark.xml
<TextView
android:id="@+id/timetableWidgetItemNumber"
- android:layout_width="40dp"
- android:layout_height="40dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:minWidth="40dp"
+ android:minHeight="40dp"
android:gravity="center"
android:includeFontPadding="false"
android:maxLength="2"

MODIFY
app/src/main/res/layout/item_widget_timetable_small.xml
app/src/main/res/layout/item_widget_timetable_small.xml
<TextView
android:id="@+id/timetableWidgetItemNumber"
- android:layout_width="40dp"
+ android:layout_width="wrap_content"
+ android:minWidth="40dp"
android:layout_height="wrap_content"
android:gravity="center"
android:maxLength="2"

MODIFY
app/src/main/res/layout/item_widget_timetable_small_dark.xml
app/src/main/res/layout/item_widget_timetable_small_dark.xml
<TextView
android:id="@+id/timetableWidgetItemNumber"
- android:layout_width="40dp"
+ android:layout_width="wrap_content"
+ android:minWidth="40dp"
android:layout_height="wrap_content"
android:gravity="center"
android:maxLength="2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
- android:layout_marginLeft="6dp"
android:maxLines="1"
android:textColor="@android:color/white"
android:textSize="13sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
- android:layout_marginLeft="10dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@android:color/white"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
- android:layout_marginLeft="10dp"
android:maxLines="1"
android:textColor="@android:color/white"
android:textSize="15sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
- android:layout_marginLeft="10dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@android:color/white"

MODIFY
app/src/main/res/layout/scrollable_header_about.xml
app/src/main/res/layout/scrollable_header_about.xml
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="104dp"
+ android:layout_height="wrap_content"
+ android:minHeight="104dp"
android:orientation="vertical"
tools:context=".ui.modules.about.AboutAdapter">

Add support for BIG font (#989)

Co-authored-by: Faierbel <RafalBO99@outlook.com>