2023-05-08 11:27:43 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-05-15 15:18:47 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-05-08 11:27:43 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2023-05-15 15:18:47 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:id="@+id/coordinator_layout"
|
2023-05-08 11:27:43 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2023-05-15 15:18:47 +02:00
|
|
|
tools:context=".fragment.QuoteFragment">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fitsSystemWindows="true">
|
|
|
|
|
|
2023-05-19 11:15:04 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2023-05-15 15:18:47 +02:00
|
|
|
android:layout_height="wrap_content"
|
2023-05-19 11:15:04 +02:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_marginEnd="8dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/app_title_bar"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/quote_fragment_title"
|
|
|
|
|
android:textSize="28sp"
|
|
|
|
|
android:fontFamily="@font/mono_bold_italic"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_save"
|
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
|
android:id="@+id/button_save"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minWidth="0dp"
|
|
|
|
|
app:icon="@drawable/save"
|
|
|
|
|
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"/>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2023-05-15 15:18:47 +02:00
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2023-05-08 11:27:43 +02:00
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2023-05-15 15:18:47 +02:00
|
|
|
android:id="@+id/recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:scrollbars="vertical"
|
2023-05-08 11:27:43 +02:00
|
|
|
android:paddingBottom="84dp"
|
|
|
|
|
android:clipToPadding="false"
|
2023-05-15 15:18:47 +02:00
|
|
|
android:scrollbarStyle="outsideOverlay"
|
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
|
|
android:layoutAnimation="@anim/layout_animation_fall_down"/>
|
2023-05-08 11:27:43 +02:00
|
|
|
|
2023-05-15 15:18:47 +02:00
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
|
android:id="@+id/fab_add_quote"
|
2023-05-08 11:27:43 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-15 15:18:47 +02:00
|
|
|
android:layout_gravity="bottom|end"
|
2023-05-08 11:27:43 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
2023-05-15 15:18:47 +02:00
|
|
|
android:text="@string/quote_fragment_fab_add"
|
|
|
|
|
app:icon="@drawable/add"/>
|
2023-05-08 11:27:43 +02:00
|
|
|
<!-- app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlayExtended"-->
|
|
|
|
|
|
2023-05-15 15:18:47 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|