• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PullRefreshListView: Android下拉刷新库

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

PullRefreshListView

开源软件地址:

https://gitee.com/gentlemanyc/PullRefreshListView

开源软件介绍:

#PullRefreshListView###运行截图:输入图片说明输入图片说明输入图片说明

最低版本要求:

android 2.3.3(API level=10)

需要导入的jar包:

nineoldandroids-2.4.0.jarandroid-support-v4.jar

使用方法:

1.在xml中字义:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    xmlns:app="http://schemas.android.com/apk/res/cc.core.pullrefresh"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"    tools:context="cc.core.pullrefresh.MainActivity" >    <cc.core.pullrefresh.PRListView        android:id="@+id/listview"        android:layout_width="fill_parent"        android:layout_height="fill_parent"        android:dividerHeight="10dp"        app:header_img="@drawable/jb"        app:header_textSize="14sp" /></LinearLayout>

2.在java代码中使用:

    listview = (PRListView) findViewById(R.id.listview);        listview.setMode(PullRefreshAbsListViewBase.Mode.PULL_FROM_BOTTOM);        listview.setAdapter(new ArrayAdapter<String>(this,                android.R.layout.simple_list_item_1, data));        listview.setOnRefreshListener(new OnRefreshListener() {            @Override            public void onHeaderRefresh() {            //刷新操作            }            @Override            public void onFooterRefresh() {            //加载更多            }        });

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap