2023-06-04 16:59:04 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-06-04 20:45:38 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-06-04 17:42:30 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2023-06-04 20:45:38 +02:00
|
|
|
android:id="@+id/root_view"
|
2023-06-04 16:59:04 +02:00
|
|
|
android:layout_width="match_parent"
|
2023-06-04 17:42:30 +02:00
|
|
|
android:layout_height="match_parent"
|
2023-06-04 20:45:38 +02:00
|
|
|
tools:context=".fragment.CompactOverviewFragment">
|
2023-06-04 16:59:04 +02:00
|
|
|
|
2023-06-04 17:42:30 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-06-04 20:45:38 +02:00
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
2023-06-04 17:42:30 +02:00
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
app:layout_scrollFlags="scroll">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/app_title_bar"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/app_name"
|
|
|
|
|
android:textSize="28sp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
|
app:fontFamily="@font/lato_blackitalic"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_settings"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
|
android:id="@+id/button_settings"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/settings"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/app_title_bar"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/app_title_bar"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:iconTint="?attr/colorOnSurfaceVariant"
|
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
|
android:tooltipText="@string/compact_overview_button_settings_hint"/>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
2023-06-04 20:45:38 +02:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/field_timetable"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
|
android:background="@drawable/selectable_item_background"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:layout_marginTop="24dp">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/text_event_header"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:text="@string/compact_overview_header_events"
|
|
|
|
|
android:textSize="22sp"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_timetable"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
|
android:id="@+id/button_timetable"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/arrow_forward"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/text_event_header"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/text_event_header"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:iconTint="?attr/colorOnSurfaceVariant"
|
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
|
android:tooltipText="@string/compact_overview_button_events_hint"/>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/event_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:scrollbars="vertical"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:scrollbarStyle="outsideOverlay"
|
|
|
|
|
android:layoutAnimation="@anim/layout_animation_fall_down"/>
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/field_all_offers"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@drawable/selectable_item_background"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:layout_marginBottom="4dp">
|
|
|
|
|
|
|
|
|
|
<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/button_refresh_offers"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/text_offer_header"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fontFamily="@font/lato_bolditalic"
|
|
|
|
|
android:textSize="22sp"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:scrollHorizontally="true"/>
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/text_offer_subheader"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:scrollHorizontally="true"/>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
|
android:id="@+id/button_refresh_offers"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/refresh"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_all_offers"
|
|
|
|
|
app:iconTint="?attr/colorOnSurfaceVariant"
|
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
|
android:tooltipText="@string/compact_overview_button_offers_hint"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
|
android:id="@+id/button_all_offers"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/arrow_forward"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:strokeColor="?attr/colorOutlineVariant"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:iconTint="?attr/colorOnSurfaceVariant"
|
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
|
android:tooltipText="@string/compact_overview_button_offers_hint"/>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
|
android:id="@+id/swipe_refresh_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/offer_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:scrollbars="vertical"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:scrollbarStyle="outsideOverlay"
|
|
|
|
|
android:layoutAnimation="@anim/layout_animation_fall_down"/>
|
|
|
|
|
|
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|