The source code for the Kickstarter app was recently published. There is one interesting element: enter image description here In the first item , the recyclerview cardview intersects with another view . I haven't looked at the sources yet, so the question is: how can this be implemented? Of course there is an option that you need to wrap it all in layout. But maybe there are some beautiful options, like for example with an anchor in CoordinatorLayout ?

  • one
    Well, I would just put the card in framelayout with a small padding on top. when it is necessary (if this plate is dynamically added), this plate with a heart is thrown into the framemailout. I don’t see here the need for some very sophisticated complexity and beautiful version, the simpler the better - pavlofff

1 answer 1

There are only 2 options -

  1. Wrap the card in another container and place everything else on top of the card.

  2. To play with a negative margin - but this is fraught with a heap of problems - do not be so.

  • Well, here I am, too, of the first option. - pavel163