-
Notifications
You must be signed in to change notification settings - Fork 726
Sample App
Eli Hart edited this page Jun 19, 2017
·
2 revisions
The sample app demonstrates an EpoxyController class with several different types of models. A grid layout manager is used to allow two columns of buttons. EpoxyModelGroups are used to group nested horizontal RecyclerViews with buttons on their left. There are buttons to add and shuffle the carousels, and within each carousel there are buttons to add, shuffle, and change colored blocks.
Epoxy saves the scroll position of the carousels, and manages the diffing of state changes to update the RecyclerView and allow for the animations.
Clicking on a colored block shows a star animation, which demonstrates the change payload feature. This allows a model to see what the changes in state are when it is bound to a view.