I'm trying to create a layout that looks like this:
And I haven't been able to find any examples where more than one card is visible at a time. I'd like the targeted card to SNAP to the center. Can someone please show me the secret?
I'm trying to create a layout that looks like this:
And I haven't been able to find any examples where more than one card is visible at a time. I'd like the targeted card to SNAP to the center. Can someone please show me the secret?
This link, helped decipher the problem. The trick is this view property called
android:clipToPadding="false"
That and a larger margin than I was expecting. A margin of 10-20dp was not large enough to see the other views in the list, because of the space between the recyclerview items. Once I increased the left and right margin to 80dp I got the effect I was looking for.
I think if you're going to achieve that effect, user LinearLayoutManager.HORIZONTAL
Cannot be realized ,use viewpager
can realized,I have done a similar effect one year ago,Hope help you