title: NestedScrollView not scrolling to the bottom
body: <p>This layout is part of my learning process. So please don't judge the use of <code>textview</code> for displaying data.</p>
  <p>The problem is i am not able to scroll the entire data in the bottom <code>textview</code>. Always 2 sets of data is left behind.
  If i have 8 sets,the <code>scrollview</code> will show up to 6 sets. If i have 4 set it will show 2 sets and wont scroll at all. What's the problem with my <code>scrollview</code>?</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout 
  xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
  xmlns:tools=&quot;http://schemas.android.com/tools&quot;
  android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;wrap_content&quot;
  tools:context=&quot;.FireStoreNotes&quot;&gt;
  
  &lt;com.google.android.material.textfield.TextInputLayout
      android:id=&quot;@+id/textInputLayout&quot;
      style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginStart=&quot;8dp&quot;
      android:layout_marginTop=&quot;16dp&quot;
      android:layout_marginEnd=&quot;8dp&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toTopOf=&quot;parent&quot;&gt;
  
      &lt;com.google.android.material.textfield.TextInputEditText
          android:id=&quot;@+id/editText_title&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:hint=&quot;@string/title&quot; /&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
  &lt;com.google.android.material.textfield.TextInputLayout
      android:id=&quot;@+id/textInputLayout2&quot;
      style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginStart=&quot;8dp&quot;
      android:layout_marginTop=&quot;16dp&quot;
      android:layout_marginEnd=&quot;8dp&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toBottomOf=&quot;@+id/textInputLayout&quot;&gt;
  
      &lt;com.google.android.material.textfield.TextInputEditText
          android:id=&quot;@+id/editText_description&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:hint=&quot;@string/description&quot; /&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
  &lt;com.google.android.material.textfield.TextInputLayout
      android:id=&quot;@+id/textInputLayout3&quot;
      style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginStart=&quot;8dp&quot;
      android:layout_marginTop=&quot;16dp&quot;
      android:layout_marginEnd=&quot;8dp&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toBottomOf=&quot;@+id/textInputLayout2&quot;&gt;
  
      &lt;com.google.android.material.textfield.TextInputEditText
          android:id=&quot;@+id/editText_priority&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:hint=&quot;@string/priority&quot;
          android:inputType=&quot;number&quot; /&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
  &lt;com.google.android.material.button.MaterialButton
      android:id=&quot;@+id/button_add&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginStart=&quot;16dp&quot;
      android:layout_marginTop=&quot;16dp&quot;
      android:layout_marginEnd=&quot;16dp&quot;
      android:text=&quot;@string/add_notes&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toBottomOf=&quot;@+id/textInputLayout3&quot; /&gt;
  
  &lt;com.google.android.material.button.MaterialButton
      android:id=&quot;@+id/button_load&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginStart=&quot;16dp&quot;
      android:layout_marginTop=&quot;8dp&quot;
      android:layout_marginEnd=&quot;16dp&quot;
      android:text=&quot;@string/load_notes&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toBottomOf=&quot;@+id/button_add&quot; /&gt;
  
  &lt;androidx.core.widget.NestedScrollView
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginStart=&quot;16dp&quot;
      android:layout_marginTop=&quot;8dp&quot;
      android:layout_marginEnd=&quot;16dp&quot;
      android:paddingBottom=&quot;?android:attr/actionBarSize&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toBottomOf=&quot;@+id/button_load&quot;&gt;
  
      &lt;TextView
          android:id=&quot;@+id/textView_loadData&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:textSize=&quot;20sp&quot; /&gt;
  
   &lt;/androidx.core.widget.NestedScrollView&gt;
  
   &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>This is how my layout looks.</p>
  <p><a href="https://i.stack.imgur.com/TS3DP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TS3DP.png" alt="enter image description here" /></a></p>
  <p>Thanks in advance.</p>