Android 相同的ScrollView代码在其他布局中不起作用

Android 相同的ScrollView代码在其他布局中不起作用,android,scrollview,Android,Scrollview,我开发了一个视频通话应用程序。但在信息屏幕上,我的客户要求提供回复功能。在开发这个程序的过程中,我复制了Scrollview在另一个布局中运行的代码。但是相同的代码在另一个布局中不起作用 这是我的代码: <LinearLayout android:layout_width="match_parent" android:layout_height="80dp" android:layout_marginS

我开发了一个视频通话应用程序。但在信息屏幕上,我的客户要求提供回复功能。在开发这个程序的过程中,我复制了Scrollview在另一个布局中运行的代码。但是相同的代码在另一个布局中不起作用

这是我的代码:

<LinearLayout
        android:layout_width="match_parent"
        android:layout_height="80dp"
        android:layout_marginStart="10dp"
        android:layout_marginEnd="10dp"
        android:layout_marginBottom="3dp"
        android:animateLayoutChanges="true"
        android:background="@drawable/background_their_message_ll"
        android:orientation="vertical">

        <ScrollView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <TextView
                    android:id="@+id/reply_text_view_adapter"
                    android:layout_width="190dp"
                    android:layout_height="wrap_content"
                    android:layout_gravity="left"
                    android:layout_marginStart="5dp"
                    android:layout_marginRight="6dp"
                    android:text="Reply Message Here"
                    android:textSize="12sp"
                    android:textStyle="italic"
                    tools:ignore="HardcodedText,RtlHardcoded" />
            </LinearLayout>
        </ScrollView>
    </LinearLayout>


我到底哪里出了问题?

嗨,你说的不工作是什么意思?你期望得到什么?根据你的布局,没有什么可以滚动的。文本视图是滚动视图中唯一的视图。@Zain Hey Zain,谢谢你的评论。这里最外层螺旋上的线性布局为80dp高。如果文本视图中充满了长文本,我希望它向下滚动。但是有了这段代码,scrollView就不起作用了。我在另一个布局中使用了相同的代码,它可以正常工作。我希望你能理解我的问题。