title: Same ScrollView code does not work in another layout
body: <p>I developed a video call application. But on the messaging screen, my customer asked for a reply function. While developing this, I copied Scrollview's code that I ran in another layout. But the same code doesn't work in another layout?</p>
  <p>Here my code:</p>
  <pre><code>&lt;LinearLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;80dp&quot;
          android:layout_marginStart=&quot;10dp&quot;
          android:layout_marginEnd=&quot;10dp&quot;
          android:layout_marginBottom=&quot;3dp&quot;
          android:animateLayoutChanges=&quot;true&quot;
          android:background=&quot;@drawable/background_their_message_ll&quot;
          android:orientation=&quot;vertical&quot;&gt;
  
          &lt;ScrollView
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;&gt;
  
              &lt;LinearLayout
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:orientation=&quot;vertical&quot;&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/reply_text_view_adapter&quot;
                      android:layout_width=&quot;190dp&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:layout_gravity=&quot;left&quot;
                      android:layout_marginStart=&quot;5dp&quot;
                      android:layout_marginRight=&quot;6dp&quot;
                      android:text=&quot;Reply Message Here&quot;
                      android:textSize=&quot;12sp&quot;
                      android:textStyle=&quot;italic&quot;
                      tools:ignore=&quot;HardcodedText,RtlHardcoded&quot; /&gt;
              &lt;/LinearLayout&gt;
          &lt;/ScrollView&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  <p>Where exactly am I going wrong?</p>