Android ViewPager / StackView with pages behind each other

I am trying to get a view where I have multiple "cards" one after the other, and where I can navigate and drop "Sections" and the next "Page" appears.

It should look like this screenshot: cardsbehindeachother

I've tried using the ViewPager, but it just lets me "scroll" horizontally and the way I try to put the "View behind each other" (margin, etc) doesn't really look good.

Then I tried using a StackView, but that doesn't work as expected, especially moving items.

currentwithstackview

Is there any best practice to achieve this with a ViewPager, or do I need to create something of my own?

+3


source to share





All Articles