There is no component in the SDK with this exact functionality up to API level 11 (3.0), so you will need to create your own custom view to get the desired effect.
The easiest / fastest way is to create a custom view that extends FrameLayout, as the FrameLayout children are automatically stacked on top of each other, and your custom view inherits this behavior. You will also want to redefine the way children are placed so that you adjust the x and y positions for the children depending on where they are on the stack.
You will need to make your own methods to move to the next / previous view - you will need to do this by reordering the child views (delete them all and then add them to the new order).
The solution I described does not include revising the view that you get with AdapterViews, so it is not suitable for a large number of layered elements.
Alternatively, find the StackView source code and copy it into your project, although this will probably also require copying a large number of other Android classes into your project, since StackView will undoubtedly gain access to private members of superclasses that are only available from the widget package ( without reflection).
source share