-
Notifications
You must be signed in to change notification settings - Fork 6
2. Structure
boybeak edited this page Sep 12, 2017
·
1 revision
This library is made up by 3 main parts: Data, View and Adapter.
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.
There's only 1 key class —— AbsViewHolder Your own ViewHolder must extend AbsViewHolder.
There's only 1 key class —— DelegateAdapter This is the most important part, it binds different types of data with corresponding view.