Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best way to make the overlapping item in RecyclerView?

I need to make RecyclerView with so content:
Sample
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.

like image 997
Шах Avatar asked Apr 29 '16 13:04

Шах


People also ask

How do I add space between items in RecyclerView?

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.)

How do you make an endless circular RecyclerView?

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).

What is ItemDecoration RecyclerView?

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.


1 Answers

You can use this library if you can, To display more info in same list. suggestion to make it better. not only option.

like image 190
Wasim K. Memon Avatar answered Sep 28 '22 03:09

Wasim K. Memon