此回收即可查看持有人滚动浏览布局不会滚动有什么问题



i我的 RecyclerView CC_1布局,我尝试将 android.widget.ScrollView滚动以这样的内容滚动:

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="8dp"
    android:padding="4dp">
    <android.widget.ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true"
        android:scrollbars="vertical">
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <TextView
                android:id="@+id/title_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:padding="10dp"
                android:text="SOME TEXT"
                android:textStyle="bold"/>
            <TextView
                android:id="@+id/descr_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/title_text"
                android:padding="10dp"
                android:text="SOME TEXT"
                android:textStyle="bold"/>
            <com.github.rahatarmanahmed.cpv.CircularProgressView
                android:id="@+id/progress_view"
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:layout_centerInParent="true"
                android:visibility="gone"
                app:cpv_indeterminate="true"/>
        </RelativeLayout>
    </android.widget.ScrollView>
</LinearLayout>

问题没有发生,我无法滚动它。有什么建议是磨碎的吗?

由于您的RecyclerView已经滚动,因此您可能需要NestedScrollview。

最新更新