2023-04-16 22:17:00 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-04-20 21:35:09 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-04-16 22:17:00 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-04-23 17:13:48 +02:00
|
|
|
android:layout_height="match_parent">
|
2023-04-16 22:17:00 +02:00
|
|
|
|
2023-04-25 15:38:30 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/toolbar"
|
2023-04-20 21:35:09 +02:00
|
|
|
android:layout_width="0dp"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-04-25 15:38:30 +02:00
|
|
|
android:fitsSystemWindows="true"
|
2023-04-20 21:35:09 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2023-04-25 15:38:30 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/app_title_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:text="@string/title_food"
|
|
|
|
|
android:textSize="32sp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
|
android:layout_marginTop="16dp"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
|
android:id="@+id/day_tab_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:tabMode="scrollable"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/button_canteen_picker"
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
2023-04-18 10:25:45 +02:00
|
|
|
|
2023-04-25 16:55:17 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
android:id="@+id/button_info"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/info"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:iconTint="?attr/colorOnSurfaceVariant"/>
|
|
|
|
|
|
2023-04-16 22:17:00 +02:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
|
android:id="@+id/swipe_refresh_layout"
|
2023-04-20 21:35:09 +02:00
|
|
|
android:layout_width="0dp"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:layout_height="0dp"
|
2023-04-20 21:35:09 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2023-04-25 15:38:30 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/toolbar"
|
2023-04-20 21:35:09 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/scroll_view_chip">
|
2023-04-16 22:17:00 +02:00
|
|
|
|
2023-04-18 10:25:45 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2023-04-16 22:17:00 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
|
|
|
android:id="@+id/view_pager"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:layout_width="match_parent"
|
2023-04-20 21:35:09 +02:00
|
|
|
android:layout_height="match_parent"/>
|
2023-04-16 22:17:00 +02:00
|
|
|
|
2023-04-18 10:25:45 +02:00
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2023-04-16 22:17:00 +02:00
|
|
|
|
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
|
2023-04-18 10:25:45 +02:00
|
|
|
<HorizontalScrollView
|
2023-04-20 21:35:09 +02:00
|
|
|
android:id="@+id/scroll_view_chip"
|
|
|
|
|
android:layout_width="0dp"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-04-20 21:35:09 +02:00
|
|
|
android:scrollbars="none"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
2023-04-18 10:25:45 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
|
|
|
android:id="@+id/chips_preference"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:animateLayoutChanges="true">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_fair"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_fair"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_fish"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-04-20 10:17:04 +02:00
|
|
|
android:text="@string/pref_fish"/>
|
2023-04-18 10:25:45 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_poultry"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_poultry"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_lamb"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_lamb"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_vital"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_vital"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_beef"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_beef"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_pork"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_pork"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_vegetarian"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_vegetarian"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_vegan"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_vegan"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip
|
2023-04-23 17:13:48 +02:00
|
|
|
style="@style/Widget.Material3.Chip.Filter"
|
2023-04-18 10:25:45 +02:00
|
|
|
android:id="@+id/chip_pref_game"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/pref_game"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
|
|
|
|
|
|
</HorizontalScrollView>
|
|
|
|
|
|
2023-04-20 21:35:09 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|