title: ScrollView with Constraint Layout ( White Space at Top )
body: <p>I've been using ScrollView as parent and Constraint Layout as Child. The Children of Constraint layout is bound between the top and the bottom of its parent ( Let us say <strong>View 1</strong>).</p>
  <p>When I add another TextView ( <strong>View 2</strong> ) and bounds as 50 width and wrap_content as height.Now if I add Long text value, Both <strong>View 1</strong> and <strong>View 2</strong> Starts going down and If I increase the amount text and its starts going out of the screen.</p>
  <p>Any Solution for this</p>
  <pre><code>&lt;ScrollView 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:id=&quot;@+id/scroller&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:clipChildren=&quot;true&quot;
      android:clipToPadding=&quot;true&quot;
      android:descendantFocusability=&quot;beforeDescendants&quot;
      android:fillViewport=&quot;true&quot;
      android:focusableInTouchMode=&quot;true&quot;
      android:scrollbars=&quot;vertical&quot;
      app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
      app:layout_constraintTop_toTopOf=&quot;parent&quot;
      tools:context=&quot;.MainActivity&quot;&gt;
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;&gt;
  
          &lt;TextView
              android:id=&quot;@+id/line1&quot;
              android:layout_width=&quot;50dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;Hello Wosaddsadasrld!&quot;
              app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/line2&quot;
              android:layout_width=&quot;50dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;Hello Wosaddsadajhsf
              iabdjkjasbdjsjabdsajbjahsbdjabshjdsajbs
              ajbjhbdsjabshbdbhjbasjhbhadjbjhabsjadbjdbs
              ajbdbashbbasdbhdbashjbjkvdsbkjvdbsjkbdsvsrld!&quot;
              app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/line1&quot; /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/line3&quot;
              android:layout_width=&quot;50dp&quot;
              android:layout_height=&quot;0dp&quot;
              android:gravity=&quot;center&quot;
              android:text=&quot;Bagadehs&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/line2&quot; /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/line4&quot;
              android:layout_width=&quot;50dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:gravity=&quot;center&quot;
              android:text=&quot;sdfdsf&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/line3&quot; /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/line5&quot;
              android:layout_width=&quot;50dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:gravity=&quot;center&quot;
              android:text=&quot;rtte&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/line4&quot; /&gt;
  
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/sU4MQ.png" rel="nofollow noreferrer">Kindly see the Scroll bars</a>
  <a href="https://i.stack.imgur.com/RMTTI.png" rel="nofollow noreferrer">enter image description here</a></p>