The Recyclerview of Android learning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.