2023-04-13 12:25:43 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2023-04-13 19:21:53 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2023-04-13 12:25:43 +02:00
|
|
|
tools:context=".fragment.SettingsFragment"
|
2023-04-13 19:21:53 +02:00
|
|
|
android:background="?attr/colorBackground">
|
2023-04-13 12:25:43 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="8dp"
|
|
|
|
|
android:layout_marginVertical="4dp"
|
2023-04-13 21:05:52 +02:00
|
|
|
style="@style/Widget.Material3.CardView.Outlined"
|
|
|
|
|
android:backgroundTint="?attr/colorCardBackground">
|
2023-04-13 12:25:43 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:textSize="22sp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_misc"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginHorizontal="16dp"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.divider.MaterialDivider
|
2023-04-14 13:09:40 +02:00
|
|
|
style="@style/DividerTheme"
|
2023-04-13 12:25:43 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="16dp"/>
|
|
|
|
|
|
2023-04-13 21:05:52 +02:00
|
|
|
<!-- App version -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:id="@+id/button_refresh_schedule"
|
|
|
|
|
android:background="@drawable/layout_ripple"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/refresh_schedule_title"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:text="@string/refresh_schedule_subtitle"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-04-13 12:25:43 +02:00
|
|
|
<!-- Academic quarter -->
|
2023-04-13 19:21:53 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_quarter"
|
2023-04-13 12:25:43 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
2023-04-13 19:21:53 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_quarter_title"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:text="@string/settings_quarter_subtitle"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
2023-04-13 21:05:52 +02:00
|
|
|
style="@style/SwitchTheme"
|
2023-04-13 19:21:53 +02:00
|
|
|
android:id="@+id/switch_quarter"
|
2023-04-13 12:25:43 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-13 19:21:53 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2023-04-18 21:33:24 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Highlight course -->
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_highlight"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_highlight_title"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:text="@string/settings_highlight_subtitle"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
|
|
|
style="@style/SwitchTheme"
|
|
|
|
|
android:id="@+id/switch_highlight"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2023-04-13 19:21:53 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2023-04-13 21:05:52 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
2023-04-13 12:25:43 +02:00
|
|
|
|
2023-04-13 19:21:53 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2023-04-13 12:25:43 +02:00
|
|
|
|
|
|
|
|
<!-- App version -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:id="@+id/button_app_version"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2023-04-20 10:05:24 +02:00
|
|
|
android:background="@drawable/layout_ripple"
|
2023-04-13 12:25:43 +02:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_app_version"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/app_version_text"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:text="@string/with_love"
|
|
|
|
|
android:textSize="10sp"
|
|
|
|
|
android:layout_marginTop="4dp"
|
2023-04-14 13:21:24 +02:00
|
|
|
android:textAlignment="center"
|
|
|
|
|
tools:ignore="SmallSp" />
|
2023-04-13 12:25:43 +02:00
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|