1. 程式人生 > >scrollview嵌套recyclerview顯示不全現象

scrollview嵌套recyclerview顯示不全現象

color recycle idg als tool widget cycle match oid

只需在recyclerview的外層加入一個父布局就好了  

   <RelativeLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent">

                        <android.support.v7.widget.RecyclerView
                            android:id="@+id/rv_lineView"
                            android:layout_width
="match_parent" android:layout_height="match_parent" android:layout_marginTop="20dip" android:clipToPadding="false" tools:listitem="@layout/item_timeline" android:nestedScrollingEnabled
="false"/> </RelativeLayout>

scrollview嵌套recyclerview顯示不全現象