2023-04-13 12:25:43 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-05-02 16:05:33 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-04-30 22:47:59 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2023-04-13 12:25:43 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2023-04-30 22:47:59 +02:00
|
|
|
tools:context=".fragment.SettingsFragment"
|
2023-05-13 19:31:27 +02:00
|
|
|
android:id="@+id/coordinator_layout"
|
2023-04-13 12:25:43 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:orientation="vertical">
|
2023-04-13 12:25:43 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/toolbar"
|
2023-04-13 12:25:43 +02:00
|
|
|
android:layout_width="match_parent"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fitsSystemWindows="true">
|
2023-04-25 15:38:30 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/app_title_bar"
|
2023-05-03 14:16:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-25 15:38:30 +02:00
|
|
|
android:layout_marginHorizontal="16dp"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginTop="16dp"
|
2023-05-05 13:09:27 +02:00
|
|
|
android:layout_marginBottom="8dp"
|
2023-05-09 14:19:45 +02:00
|
|
|
android:fontFamily="@font/lato_blackitalic"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/title_settings"
|
2023-05-13 10:00:40 +02:00
|
|
|
app:layout_scrollFlags="scroll"
|
2023-05-04 15:09:10 +02:00
|
|
|
android:textSize="28sp"/>
|
2023-04-25 15:38:30 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2023-04-25 15:38:30 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2023-05-02 16:05:33 +02:00
|
|
|
android:scrollbars="vertical"
|
2023-05-20 23:01:53 +02:00
|
|
|
android:paddingBottom="52dp"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:scrollbarStyle="outsideOverlay"
|
2023-05-02 16:05:33 +02:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2023-04-30 22:47:59 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-13 12:25:43 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-05 13:09:27 +02:00
|
|
|
android:orientation="vertical"
|
2023-05-13 19:31:27 +02:00
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
android:animateLayoutChanges="true">
|
2023-04-13 12:25:43 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<!-- Stud.IP schedule settings -->
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
|
style="@style/Widget.Material3.CardView.Outlined"
|
2023-04-13 12:25:43 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="8dp"
|
|
|
|
|
android:layout_marginVertical="4dp">
|
2023-04-13 12:25:43 +02:00
|
|
|
|
2023-04-13 21:05:52 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:paddingBottom="8dp">
|
2023-04-13 21:05:52 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
2023-04-13 21:05:52 +02:00
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/settings_schedule"
|
|
|
|
|
android:textSize="22sp" />
|
2023-04-13 21:05:52 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<com.google.android.material.divider.MaterialDivider
|
|
|
|
|
style="@style/DividerTheme"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-04-13 21:05:52 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="16dp" />
|
2023-04-18 21:33:24 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<!-- Refresh schedule -->
|
2023-04-18 21:33:24 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-30 22:47:59 +02:00
|
|
|
android:id="@+id/button_refresh_schedule"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-04-18 21:33:24 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:background="@drawable/selectable_item_background"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
2023-04-18 21:33:24 +02:00
|
|
|
android:orientation="vertical"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
2023-04-18 21:33:24 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/refresh_schedule_title"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-18 21:33:24 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/refresh_schedule_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-18 21:33:24 +02:00
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-05-04 08:32:12 +02:00
|
|
|
<!-- Highlight course -->
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_current_day"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_current_day"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_current_day_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_current_day_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
|
|
|
android:id="@+id/switch_current_day"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<!-- Highlight course -->
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_highlight"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-04-18 21:33:24 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
2023-04-13 12:25:43 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_highlight"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2023-04-13 12:25:43 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_highlight_title"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_highlight_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
|
|
|
android:id="@+id/switch_highlight"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
|
|
<!-- canteen settings -->
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
|
style="@style/Widget.Material3.CardView.Outlined"
|
2023-04-23 21:40:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="8dp"
|
|
|
|
|
android:layout_marginVertical="4dp">
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-23 21:40:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<TextView
|
2023-04-23 21:40:04 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_canteen"
|
|
|
|
|
android:textSize="22sp" />
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<com.google.android.material.divider.MaterialDivider
|
|
|
|
|
style="@style/DividerTheme"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-04-29 22:26:26 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="16dp" />
|
2023-04-29 22:26:26 +02:00
|
|
|
|
2023-05-01 19:17:35 +02:00
|
|
|
<!-- Configure allergens -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:id="@+id/button_allergens_config"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:background="@drawable/selectable_item_background"
|
2023-05-01 19:17:35 +02:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/allergens_config_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
2023-05-10 18:43:06 +02:00
|
|
|
android:id="@+id/allergens_config_subtitle"
|
2023-05-01 19:17:35 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<!-- Allergens -->
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_allergens"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_allergens"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
2023-05-13 19:31:27 +02:00
|
|
|
android:id="@+id/settings_allergens_title_view"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_allergens_title"
|
2023-05-14 13:10:47 +02:00
|
|
|
android:textSize="16sp"/>
|
2023-04-30 22:47:59 +02:00
|
|
|
|
|
|
|
|
<TextView
|
2023-05-13 19:31:27 +02:00
|
|
|
android:id="@+id/settings_allergens_subtitle_view"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_allergens_subtitle"
|
2023-05-14 13:10:47 +02:00
|
|
|
android:textSize="16sp"/>
|
2023-04-30 22:47:59 +02:00
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
|
|
|
android:id="@+id/switch_allergens"
|
2023-04-29 22:26:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2023-04-29 22:26:26 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Preference colouring -->
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_pref_colour"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_pref_colour"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_pref_colour_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_pref_colour_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
|
|
|
android:id="@+id/switch_pref_colour"
|
2023-04-29 22:26:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2023-04-29 22:26:26 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2023-04-29 22:26:26 +02:00
|
|
|
|
2023-05-10 21:14:17 +02:00
|
|
|
<!-- Pricing -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_pricing_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_pricing_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
|
|
|
android:id="@+id/toggle_pricing_group"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
app:singleSelection="true"
|
|
|
|
|
app:selectionRequired="true">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2023-05-10 21:31:26 +02:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
2023-05-10 21:14:17 +02:00
|
|
|
android:id="@+id/toggle_pricing_student"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_pricing_student"
|
2023-05-10 21:31:26 +02:00
|
|
|
android:textColor="@color/list_group_button"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"/>
|
2023-05-10 21:14:17 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2023-05-10 21:31:26 +02:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
2023-05-10 21:14:17 +02:00
|
|
|
android:id="@+id/toggle_pricing_employee"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_pricing_employee"
|
2023-05-10 21:31:26 +02:00
|
|
|
android:textColor="@color/list_group_button"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"/>
|
2023-05-10 21:14:17 +02:00
|
|
|
|
|
|
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2023-04-29 22:26:26 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2023-04-29 22:26:26 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<!-- miscellaneous settings -->
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
|
style="@style/Widget.Material3.CardView.Outlined"
|
2023-04-23 21:40:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="8dp"
|
|
|
|
|
android:layout_marginVertical="4dp">
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-23 21:40:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="8dp">
|
2023-04-23 21:40:04 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
2023-04-25 15:38:30 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_misc"
|
|
|
|
|
android:textSize="22sp" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.divider.MaterialDivider
|
|
|
|
|
style="@style/DividerTheme"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="16dp" />
|
|
|
|
|
|
2023-05-10 21:14:17 +02:00
|
|
|
<!-- Launch fragment -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-10 21:14:17 +02:00
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
2023-05-10 21:14:17 +02:00
|
|
|
<TextView
|
2023-04-30 22:47:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-10 21:14:17 +02:00
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_launch_canteen_title"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-30 22:47:59 +02:00
|
|
|
|
2023-05-10 21:14:17 +02:00
|
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
|
|
|
android:id="@+id/toggle_launch_fragment_group"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
|
app:singleSelection="true"
|
|
|
|
|
app:selectionRequired="true">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2023-05-10 21:31:26 +02:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
2023-05-10 21:14:17 +02:00
|
|
|
android:id="@+id/toggle_launch_fragment_schedule"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/title_schedule_short"
|
2023-05-10 21:31:26 +02:00
|
|
|
android:textColor="@color/list_group_button"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"/>
|
2023-05-10 21:14:17 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2023-05-10 21:31:26 +02:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
2023-05-10 21:14:17 +02:00
|
|
|
android:id="@+id/toggle_launch_fragment_canteen"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/title_canteen_short"
|
2023-05-10 21:31:26 +02:00
|
|
|
android:textColor="@color/list_group_button"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"/>
|
2023-05-10 21:14:17 +02:00
|
|
|
|
|
|
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2023-04-30 22:47:59 +02:00
|
|
|
|
2023-05-05 11:53:44 +02:00
|
|
|
<!-- crashlytics opt-in - unused. use for possible future implementation of Crashlytics -->
|
2023-04-30 22:47:59 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_crashlytics"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
2023-05-05 11:53:44 +02:00
|
|
|
android:paddingVertical="8dp"
|
|
|
|
|
android:visibility="gone">
|
2023-04-30 22:47:59 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_crashlytics"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_crashlytics_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_crashlytics_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
|
|
|
android:id="@+id/switch_crashlytics"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Data handling -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:id="@+id/button_data_handling"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:background="@drawable/selectable_item_background"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
2023-04-25 15:38:30 +02:00
|
|
|
android:orientation="vertical"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
2023-04-25 15:38:30 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/settings_data_title"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-25 15:38:30 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/settings_data_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-25 15:38:30 +02:00
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<!-- Licences -->
|
2023-04-24 13:08:03 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-30 22:47:59 +02:00
|
|
|
android:id="@+id/button_licences"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-04-24 13:08:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:background="@drawable/selectable_item_background"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
2023-04-24 13:08:03 +02:00
|
|
|
android:orientation="vertical"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
2023-04-24 13:08:03 +02:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/settings_licences_title"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-24 13:08:03 +02:00
|
|
|
|
|
|
|
|
<TextView
|
2023-04-30 22:47:59 +02:00
|
|
|
android:id="@+id/licences_text"
|
2023-04-24 13:08:03 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:text="@string/settings_licences_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-24 13:08:03 +02:00
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<!-- App version -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:id="@+id/button_app_version"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-04-24 13:08:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-05-01 22:19:44 +02:00
|
|
|
android:background="@drawable/selectable_item_background"
|
2023-04-30 22:47:59 +02:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
2023-04-24 13:08:03 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_app_version"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-24 13:08:03 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/app_version_text"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp" />
|
2023-04-20 21:35:09 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2023-04-20 21:35:09 +02:00
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2023-04-26 10:21:16 +02:00
|
|
|
|
2023-05-13 19:31:27 +02:00
|
|
|
<!-- development settings -->
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
|
android:id="@+id/card_experimental_settings"
|
|
|
|
|
style="@style/Widget.Material3.CardView.Outlined"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="8dp"
|
|
|
|
|
android:layout_marginVertical="4dp">
|
|
|
|
|
|
|
|
|
|
<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_marginHorizontal="16dp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_experimental"
|
|
|
|
|
android:textSize="22sp" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.divider.MaterialDivider
|
|
|
|
|
style="@style/DividerTheme"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="16dp"/>
|
|
|
|
|
|
|
|
|
|
<!-- Hide experiments -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:id="@+id/button_hide_experiments"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@drawable/selectable_item_background"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_hide_experiments_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_hide_experiments_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<!-- Build time -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:id="@+id/button_build_time"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@drawable/selectable_item_background"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_build_time"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/build_time_text"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
2023-05-20 23:01:53 +02:00
|
|
|
<!-- Show beta nav icons -->
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/layout_beta_nav"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/switch_beta_nav"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_beta_nav_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/settings_beta_nav_subtitle"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
|
|
|
android:id="@+id/switch_beta_nav"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
2023-05-13 19:31:27 +02:00
|
|
|
<!-- Dev codes -->
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@drawable/selectable_item_background"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
|
android:paddingVertical="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/settings_dev_codes_title"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="4"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:hint="@string/settings_dev_codes_hint">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
style="@style/Widget.Material3.TextInputEditText.OutlinedBox"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:maxLength="6"
|
|
|
|
|
android:id="@+id/input_dev_code"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/ibm_regular"
|
|
|
|
|
android:inputType="textNoSuggestions"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
|
android:id="@+id/button_dev_codes"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/double_arrow_right"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"
|
|
|
|
|
app:iconTint="?attr/colorOnSurfaceVariant"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2023-04-26 10:21:16 +02:00
|
|
|
|
2023-04-30 22:47:59 +02:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2023-04-26 10:21:16 +02:00
|
|
|
|
2023-05-02 16:05:33 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
2023-04-13 12:25:43 +02:00
|
|
|
|