1 universal adapter implementation to avoid duplication made similar wheels. Can be used directly inherited AbsListView of View (GridView, ListVIew).
2 ListView row abstract UI structure (GridView grid UI). The focus of concerns to the line UI structure, easy diverse and complex line UI (grid UI), but also through an object-oriented inheritance to reuse UI.
3 shows a view can be flexible UI in each row according to the current gesture. For example, do not show pictures when FLING, not registered in the SCROLL when OnClickListener so.
- Welcome to download the following example easyadapter-sample !
-
通用的adapter实现,避免重复造类似的轮子。可直接用于继承AbsListView的View(GridView、ListVIew)。
-
抽象出ListView行UI构造(GridView格子UI)。将关注点聚焦到行UI的构造,轻松实现多样复杂的行UI(格子UI),而且还可以通过面向对象的继承方式来复用UI。
-
在每行UI中可以灵活的根据当前手势展示视图。比如在FLING时不显示图片、在SCROLL时不注册OnClickListener等等。
-
欢迎下载下面的示例easyadapter-sample !