app/src/main/res/layout/activity_comments.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="50dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view_comments"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
app:layoutManager="LinearLayoutManager" />
</FrameLayout>
<View
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/black"
app:layout_constraintBottom_toTopOf="@+id/comments_chatbox" />
<RelativeLayout
android:id="@+id/comments_chatbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent">
<EditText
android:id="@+id/comments_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="16dp"
android:layout_toStartOf="@+id/comments_send_button"
android:background="@android:color/transparent"
android:hint="@string/enter_comment"
android:inputType="text"
android:maxLines="6"
tools:ignore="Autofill" />
<ImageButton
android:id="@+id/comments_send_button"
android:layout_width="64dp"
android:layout_height="48dp"
android:layout_alignParentEnd="true"
android:contentDescription="@string/send_comment_icon"
android:src="@drawable/ic_baseline_send_24"
android:textColor="@color/black" />
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>