Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

recycleview嵌套scrollview问题 #203

Open
luoluoqi0898 opened this issue Oct 16, 2020 · 0 comments
Open

recycleview嵌套scrollview问题 #203

luoluoqi0898 opened this issue Oct 16, 2020 · 0 comments

Comments

@luoluoqi0898
Copy link

recycleview嵌套scrollview后,recycleview的高度测量值为0,求解。不使用tangram是正常的,布局如下:

<ScrollView
    android:id="@+id/scrollView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@android:color/transparent"
    android:scrollbars="none">

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

    <View
        android:layout_width="match_parent"
        android:background="@color/redText"
        android:layout_height="1000dp"/>

    <android.support.v7.widget.RecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>
    </LinearLayout>

</ScrollView>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant