Мне бы хотелось, чтобы TextView
оставался в нижней части экрана, а содержимое над ним можно было прокручивать, но нижняя TextView
не перемещалась при прокрутке пользователя.
Это это то, что у меня есть, пока:
<androidx.core.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingTop="20dp"
android:paddingLeft="20dp"
android:paddingRight="20dp">
<TextView
android:id="@+id/tv_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:layout_marginTop="40dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/green"
android:padding="5dp"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
android:text="Unlock Pro Settings"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>