16 Star 17 Fork 2

gentlemanyc / PullRefreshListView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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

最低版本要求:

android 2.3.3(API level=10)

需要导入的jar包:

nineoldandroids-2.4.0.jar android-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() {
            //加载更多
            }
        });

空文件

简介

Android下拉刷新库 展开 收起
Android
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/gentlemanyc/PullRefreshListView.git
git@gitee.com:gentlemanyc/PullRefreshListView.git
gentlemanyc
PullRefreshListView
PullRefreshListView
master

搜索帮助