Мое приложение в настоящее время выглядит следующим образом:
Как сделать так, чтобы эти элементы отображались в нижней части экрана? Возможно, стоит отметить, что эти элементы расширяются при выборе.
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="292dp"
android:layout_gravity="bottom"
android:layout_weight="
android:orientation="horizontal"/>
Редактировать 1: Добавлен родительский макет, внутри которого содержится представление переработчика.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_weight="99">
<Button
android:id="@+id/buttonAdd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Add"
/>
<Button
android:id="@+id/buttonDelete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Remove" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Edit" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="292dp"
android:layout_gravity="bottom"
android:layout_weight="1"
android:orientation="horizontal" />
</LinearLayout>