

布局
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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:background="#0000"> <com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/refreshLayout" android:layout_width="match_parent" android:layout_height="match_parent"> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayout android:layout_width="match_parent" android:layout_height="200dp" android:id="@+id/fra01_rela" > <com.youth.banner.Banner android:id="@+id/ban" android:layout_width="match_parent" android:layout_height="200dp" > </com.youth.banner.Banner> <include layout="@layout/item_title" /> </RelativeLayout> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="205dp" android:text="精彩推荐"/> <android.support.v7.widget.RecyclerView android:layout_below="@+id/fra01_rela" android:layout_alignParentBottom="true" android:id="@+id/recyclerview"

本文介绍了如何使用SmartRefreshLayout和ScrollView,确保在下拉刷新和上拉加载时,轮播图能够跟随滑动,而不仅仅是RecyclerView部分。提供完整的页面代码,包括activity布局、dataview、adapter及其子布局以及mydatapresenter和datapresenter的实现。
+ScrollView 可以使轮播图也滑上去 否则轮播图不动 只滑底下recycleview部分 --页面全部代码&spm=1001.2101.3001.5002&articleId=80733071&d=1&t=3&u=104c6ad32dc141f38aa9071aedc6d0dd)
1124

被折叠的 条评论
为什么被折叠?



