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

FastListApplication: Pull to refresh the list quickly integrated(上下拉刷新列表 ...

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

开源软件名称:

FastListApplication

开源软件地址:

https://gitee.com/yilongmd/FastListApplication

开源软件介绍:

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; //dataSourceCommonAdapter commonAdapter; //commonAdapter 万能适配器@Overrideprotected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    setContentView(R.layout.activity_jw_list);    mListItems = new ArrayList<MsgItem>();    initListViewController();} /** * init ListView Controller * 初始化ListViewController */@Overrideprotected 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 */@Overrideprotected void onListViewHeadRefresh() {    // 下拉Pulling Down    //Http Get  update mListItems   }/** * 上拉Pulling Up * Http Get */@Overrideprotected void onListViewFooterRefresh() {    // 上拉Pulling Up    //Http Get    }}

示例图

image

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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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