23 Star 62 Fork 10

AFish哈哈哈哈 / FastListApplication

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

FastListApplication For Android

Pull to refresh the list quickly integrated(上下拉刷新列表快速集成) + Common Adapter (快速适配器) A few lines of code(几行代码即可)

to release to jcenter, let it can directly from Gradle loading, teach trouble understand, thank you very much!!!

想发布到jcenter中,让它可以直接从Gradle加载,麻烦懂的教一下,感激不尽!!!

extends

extends JwListActivity

quickly JwListActivity

public class MainActivity extends JwListActivity {
List<MsgItem> mListItems; //dataSource
CommonAdapter commonAdapter; //commonAdapter 万能适配器
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_jw_list);
    mListItems = new ArrayList<MsgItem>();
    initListViewController();
}

 /**
 * init ListView Controller
 * 初始化ListViewController
 */
@Override
protected void initListViewController() {
    commonAdapter = new CommonAdapter<MsgItem>(this, mListItems, android.R.layout.simple_list_item_1) {
        @Override
        public void convert(ViewHolder helper, MsgItem item) {
            helper.setText(android.R.id.text1, item.getMsg());
        }
    };
    setCommonAdapter(commonAdapter);

    //init
    super.initListViewController();
}

/**
 * 下拉Pulling Down
 * Http Get  update mListItems
 */
@Override
protected void onListViewHeadRefresh() {
    // 下拉Pulling Down
    //Http Get  update mListItems
   
}

/**
 * 上拉Pulling Up
 * Http Get
 */
@Override
protected void onListViewFooterRefresh() {
    // 上拉Pulling Up
    //Http Get
    
}
}

示例图

image

#Do share for the first time, don't understand #第一次做共享,不大懂

空文件

简介

Pull to refresh the list quickly integrated(上下拉刷新列表快速集成) 展开 收起
Android
取消

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助