I need to make RecyclerView
with so content:
But I don't know how to better make it... I think to use a custom divider (info item) for this purpose but I don't sure that it's a good idea. Maybe, who knows another ways. I'll glad for any help and advices.
P.S. I cannot use 3 items because I need to save the touch area for each item as large as without the overlapping item.
The simplest way is to add top/bottom margins around the first item in the adapter's row. android:layout_marginBottom="4dp". (Note adding the margins to the parent layout won't cut it.)
There is no way of making it infinite, but there is a way to make it look like infinite. at the end, set current item to something in the middle (or else, it would be endless only in downward direction).
An ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set. This can be useful for drawing dividers between items, highlights, visual grouping boundaries and more.
You can use this library if you can, To display more info in same list. suggestion to make it better. not only option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With