Recyclerview: The upgraded version of the ListView, which provides better performance and is easier to use. The control is one that can load a large collection of views and can be recycled and scrolled very efficiently. You can use the Recyclerview control when the elements in your list often change dynamically. It provides the following two functions:
1. Layout Manager for each entry location (Recyclerview.setlayoutmanager)
2, set the action animation for each entry (recyclerview.setitemanimator)
Learning is a bit based on:
- The way you want to control its display, through the layout manager LayoutManager
- You want to control the interval between item (can be drawn), please pass the itemdecoration
- You want to control the animation of item additions and deletions, please pass Itemanimator
- You want to control the click, long press events, please write yourself (wipe, this is a little. )
Mechanism explained:
Http://www.2cto.com/kf/201501/373859.html
Basic information
http://blog.csdn.net/lmj623565791/article/details/45059587
The Recyclerview of Android learning