May 2022
Intermediate to advanced
688 pages
20h 12m
English
RecyclerView is a subclass of ViewGroup. It displays a list of child View objects, called item views. Each item view represents a single object from the list of data backing the recycler view (in your case, a single crime from the crime list). Depending on the complexity of what you need to display, these child Views could be complex or very simple.
For your first implementation, each item in the list will display the title and date of a Crime, as shown in Figure 10.4.
Figure 10.4 A RecyclerView with child Views
Each item displayed on the RecyclerView will have its own view hierarchy, exactly ...
Read now
Unlock full access