scwang90 / SmartRefreshLayout

🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
https://segmentfault.com/a/1190000010066071
Apache License 2.0
24.87k stars 4.94k forks source link

布局中如何加入自己的view #1225

Closed SagittariusSum closed 2 years ago

SagittariusSum commented 4 years ago

<com.scwang.smart.refresh.layout.SmartRefreshLayout android:id="@+id/refreshLayout" android:layout_width="match_parent" android:layout_height="match_parent"> <com.fractalist.haowai.view.viewpager.CarouselViewPager android:id="@+id/carousel_viewPager" android:layout_width="match_parent" android:layout_height="150dp"/> <android.support.v7.widget.RecyclerView android:id="@+id/temperate_recycler" android:layout_width="match_parent" android:layout_height="match_parent" android:overScrollMode="never"/> </com.scwang.smart.refresh.layout.SmartRefreshLayout> 为什么CarouselViewPager 会变成 header? 怎么不让他变成header

scwang90 commented 2 years ago

用一个线性布局,或者帧布局,把 CarouselViewPager RecyclerView 包起来