Как я могу скрыть панель действий по умолчанию при прокрутке моего окна реселлера? Нужно ли создавать в моем XML новую панель действий? Я хочу, чтобы он исчезал всякий раз, когда пользователь прокручивал страницу, а затем снова появлялся, когда пользователь снова прокручивал вверх. Это обычная вещь в приложениях для Android. В настоящее время мой XML выглядит так:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerViewObjectives"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabNewObjective"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:background="@color/colorPrimaryLight"
android:clickable="true"
android:focusable="true"
app:srcCompat="@drawable/ic_new_objective"
/>
</RelativeLayout>