title: NestedScrollView(and ScrollView) not working with ConstraintLayout
body: <p>Here is my xml code. it's simple, yet the NestedScrollView doesn't work properly. When I changed the height property of Linearlayout from 0dp to wrap_content, NestedScrollView works but the image of ImageView stretches with the strange look. How can I fix this issue? By the way, the string of '@string/lorem' is longer than screen size. </p>
  
  <pre><code>&lt;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"
      tools:context=".MainActivity"&gt;
  
      &lt;androidx.core.widget.NestedScrollView
          android:id="@+id/sv_product"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:fillViewport="true"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"&gt;
  
          &lt;androidx.constraintlayout.widget.ConstraintLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;androidx.constraintlayout.widget.Guideline
                  android:id="@+id/gl_image_view"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal"
                  app:layout_constraintGuide_percent="0.5" /&gt;
  
              &lt;ImageView
                  android:id="@+id/iv_product_image"
                  android:layout_width="0dp"
                  android:layout_height="0dp"
                  android:background="@android:color/holo_orange_dark"
                  app:layout_constraintBottom_toBottomOf="@id/gl_image_view"
                  app:layout_constraintEnd_toEndOf="parent"
                  app:layout_constraintStart_toStartOf="parent"
                  app:layout_constraintTop_toTopOf="parent" /&gt;
  
              &lt;androidx.constraintlayout.widget.Guideline
                  android:id="@+id/gl_product_left"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  app:layout_constraintGuide_percent="0.075" /&gt;
  
              &lt;androidx.constraintlayout.widget.Guideline
                  android:id="@+id/gl_product_right"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  app:layout_constraintGuide_percent="0.925" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dp"
                  android:layout_height="0dp"
                  android:orientation="vertical"
                  app:layout_constraintBottom_toBottomOf="parent"
                  app:layout_constraintEnd_toEndOf="@id/gl_product_right"
                  app:layout_constraintStart_toStartOf="@id/gl_product_left"
                  app:layout_constraintTop_toTopOf="@id/gl_image_view"&gt;
  
                  &lt;TextView
                      android:id="@+id/tv_product_description"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_gravity="left"
                      android:text="@string/lorem" /&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  
      &lt;/androidx.core.widget.NestedScrollView&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/aJkih.png" rel="nofollow noreferrer">This is when the height property of Linearlayout is 0dp</a></p>
  
  <p><a href="https://i.stack.imgur.com/p0WYa.png" rel="nofollow noreferrer">This is when the height property of Linearlayout is wrap_content</a></p>