BeanAdapter BeanAdapterdemo: 基于 List 的适配器

程序名称:BeanAdapter BeanAdapterdemo:

授权协议: GPL

操作系统: Android

开发语言: Java

BeanAdapter BeanAdapterdemo: 介绍

BeanAdapter

BeanAdapter 是以List 为适配来源的adapter。List对adapter解决自定义对象的线性填充。

demo:

List trips = new ArrayList();
trips.add(trip1);
trips.add(trip2);
trips.add(trip3);
BeanAdapter beanAdapter = new BeanAdapter()


//准备对应的object 字段
.buildNames("name","desc","positionRef","shareSuggestion","district","url")
//准备和上面字段对应的填充id
.buildViewId(R.id.name,R.id.desc,R.id.positionref,R.id.sharesuggestion,R.id.district,R.id.image)
//完成配对,注意字段不要拼错,然后设置id群所在的item布局
.buildItemLayout(R.layout.item_layout)
//最后一步配置view和value 在内部配对的converter,保证值解入view,可自定义设定
.buildConverter(new DefaultValueViewConverter()).build(trips);
adapterView.setAdapter(beanAdapter);

BeanAdapter BeanAdapterdemo: 官网

http://git.oschina.net/cheln/BeanAdapter

相关编程语言

提到 EclEmma 首先就要说到著名的 Java 覆盖测试工具...
Solex是一个WEB应用测试用的Eclipse插件。Solex可以...
Apache为我们提供了一个强大的工具 Cactus!它是一套...
Google C Testing Framework是Google公司用来在各种...
JdbcProxy 是 SourceForge 上一个开源的 Java 项目,...
Ripplet是一款负载测试工具,特征如下: 1)基于Apa...