Skip to content

2. Structure

boybeak edited this page Sep 12, 2017 · 1 revision

This library is made up by 3 main parts: Data, View and Adapter.

Data

There are 4 key classes:

  • LayoutImpl
  • DelegateImpl extends LayoutImpl
  • AbsDelegate implements DelegateImpl
  • AnnotationDelegate extends AbsDelegate Data, such as String, Integer or some custom model class, must implement or extend any of above.
View

There's only 1 key class —— AbsViewHolder Your own ViewHolder must extend AbsViewHolder.

Adapter

There's only 1 key class —— DelegateAdapter This is the most important part, it binds different types of data with corresponding view.

Clone this wiki locally