只需在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>

 

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-11-19
  • 2022-01-21
  • 2021-12-23
  • 2021-05-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-06-13
  • 2021-10-10
相关资源
相似解决方案