一. PullToRefreshScrollView xml 整体下拉刷新上拉加载
2017-12-21 10:25
204 查看
一. 导入依赖
compile 'com.github.userswlwork:pull-to-refresh:1.0.0' 二. 注意布局是在用 pullToRefreshScrollView ListView是在用动态添加
<com.handmark.pulltorefresh.library.PullToRefreshScrollView android:id="@+id/pull_ref" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.yuekaomoni.MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <com.youth.banner.Banner android:layout_width="match_parent" android:layout_height="200dp" android:layout_weight="1" android:id="@+id/ban" ></com.youth.banner.Banner> <com.example.yuekaomoni.Mylistview android:id="@+id/My_list" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="2.5"></com.example.yuekaomoni.Mylistview> </LinearLayout> </com.handmark.pulltorefresh.library.PullToRefreshScrollView>
相关文章推荐
- 二.PullToRefreshScrollView 整体下拉刷新上拉加载 需要新建一个Mylistview
- 三.PullToRefreshScrollView 整体下拉刷新下拉加载 主方法里面
- 可以下拉刷新,上拉加载更多的RecyclerView
- 列表上拉刷新与下拉加载
- jQuery模拟原生态App上拉刷新下拉加载效果代码
- listView上拉刷新下拉加载
- 上拉刷新,下拉加载PullToRefreshLayout
- MJRefresh上拉刷新下拉加载
- XlistView的上拉刷新下拉加载 和Fragment 和无限轮播
- android 自定义listview——实现上拉刷新下拉加载的功能
- 下拉刷新,上拉加载
- 上拉刷新下拉加载
- PullToRefreshListView上拉刷新,下拉加载
- mui上拉刷新下拉加载
- 上拉刷新,下拉加载
- listView上拉刷新下拉加载
- 支持下拉加载刷新的RecyclerView
- 上拉刷新下拉加载(2)
- 上拉刷新下拉加载xlistview--------activity_main
- 原生的上拉刷新 SwipeRefreshLayout和下拉加载