pulltorefreshlistview上拉下拉刷新时的标签
2016-12-06 10:40
453 查看
ptListView.setMode(PullToRefreshBase.Mode.BOTH); ILoadingLayout refreshLayout = ptListView.getLoadingLayoutProxy(true,false); refreshLayout.setPullLabel("下拉刷新...");// 刚下拉时,显示的提示 refreshLayout.setRefreshingLabel("正在载入...");// 刷新时 refreshLayout.setReleaseLabel("放开刷新...");// 下来达到一定距离时,显示的提示 ILoadingLayout loadLayout = ptListView.getLoadingLayoutProxy(false,true); loadLayout.setPullLabel("上拉加载更多..."); loadLayout.setRefreshingLabel("正在载入..."); loadLayout.setReleaseLabel("放开加载...");
注意pulltorefreshlistview的标签默认颜色是白色,所以xml文件下记得修改颜色或者背景色
<com.handmark.pulltorefresh.library.PullToRefreshListViewandroid:layout_width="match_parent"android:layout_height="match_parent"android:id="@+id/pt_listview"android:background="@color/white"android:listSelector = "#00000000"android:divider="@color/common_bg"android:dividerHeight="1px"ptr:ptrAnimationStyle="flip"ptr:ptrHeaderBackground="@color/common_bg"//修改标签背景色ptr:ptrHeaderTextColor="@color/text_black"//修改标签颜色></com.handmark.pulltorefresh.library.PullToRefreshListView>
相关文章推荐
- PullToRefreshListView 实现上拉下拉 都能 刷新数据
- PullToRefreshListView插件初次进入页面自动刷新
- PullToRefreshListView进阶(五)----->上下刷新、上拉加载
- 下拉刷新ListView讲解,自定义PullToRefreshListView
- 下拉刷新----第三方开源-----PullToRefresh (ListView GridView 下拉刷新) 使用详解
- PullToRefreshListView 自动刷新
- Android下拉/上拉刷新ListView之Android-PullToRefresh
- PullToRefresh实现listview刷新加载
- 检测新版本,PullToRefreshListView刷新,加载
- pulltoRefreshSwipeMenuListview-带侧滑的可下拉刷新、上拉加载更多的控件
- Android自定义上拉加载下拉刷新PullToRefreshListView
- 关于调用notifyDataSetChanged刷新PullToRefreshListView列表无反应解决办法
- android初学-----PullToRefresh 上拉刷新 (ListView)
- 超简单的 listview的第三方控件PullToRefreshListView 上拉刷新,下拉加载更多,分页加载
- PullToRefresh实现listview刷新加载
- PullToRefreshListView局部刷新
- PullToRefreshListView 进入不能进入刷新状态解决
- Android下拉/上拉刷新ListView之Android-PullToRefresh
- Android PullToRefreshListView上拉刷新和下拉刷新
- pulltorefreshlistview的自定义下拉刷新动画