I'm having difficulty adjusting the layout of my activity, what I want is to have the contents inside a "scrollview", and at the bottom of the page have a button. My layout is already doing almost this, the problem that is happening is that when the content arrives to a certain point, it gets behind the button, which I want and keep the content always above the button regardless of the size.
my layout:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout 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"
android:background="@drawable/fundo_degrade"
android:fitsSystemWindows="true"
tools:context="br.com.cifrasemusica.cifrasmusica_teoriamusical.activity.ExercicioActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar">
<include
android:id="@+id/Toolbar_Exercicio"
layout="@layout/toolbar">
</include>
</android.support.design.widget.AppBarLayout>
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior = "@string/appbar_scrolling_view_behavior">
<android.support.v7.widget.RecyclerView
android:id="@+id/RecyclerView_Exercicio"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
</ScrollView>
<Button
android:layout_margin="5dp"
android:id="@+id/Button_enviarExercicio"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:text="CONFIRMAR"
android:background="@drawable/fundo_botao"
android:layout_alignParentBottom="true" />
</android.support.design.widget.CoordinatorLayout>