Because you can’t always “achieve the same effect by editing the layout that you fan in the recycler” very easily.
This is especially true if you want the delimiters to ListViewbecome between the records (say, in a vertical list). In this case, not every element has a separator - neither the first nor the last do. For simple cases, you can still handle this inside the layouts themselves, hiding the separator in the layout when it is an element that should not have a separator. However, if you:
allow users to reorder items or
you use something like SortedListto store items in sorted order or
you dynamically add and remove items
then trying to make sure the delimiters are handled correctly is a pain, because what elements get and do not get the divider moving.
, . :
RecyclerView . , , CardView , , , CardView .
, , , .