SOURCE Download: Https://github.com/qyxxjd/RecyclerViewDemo
Recyclerview:
- Recyclerview to replace the ListView for better performance and easier use
- The control is a large collection of views that can be loaded, and can be efficiently recycled and scrolled, using the Recyclerview control when the elements in your list are constantly changing dynamically
- The Convertview is reused in the Viewholder,listview, and in Recyclerview, the Viewholder is used as the unit of the cache.
- Layout Manager (Recyclerview.setlayoutmanager) is provided for each entry location
- Action Animation for each entry (Recyclerview.setitemanimator)
- Do not provide Setonitemclicklistener, setonitemlongclicklistener methods, we need to implement our own
CardView:
- Card view components, inherited from the Framelayout class
- It is easy to set the shadows and fillets
- CardView is a layout, so you can include other view
Vertical layout
Horizontal layout grid Waterfall Stream multiple item
New UI controls for Android L: simple use of Recyclerview CardView