My problem is that I want to go from layout 1 to any other layout by pressing a Button
.
For example:
From layout 1 with setDisplayChild(R.id.layout3)
to go to layout 3 from a total of 4 layouts(Doesn't work).
I made a container.xml that includes all four layout, but I can't go for example from layout 2 to layout 4 directly without using flipper.showNext()
or flipper.showPrevious()
two times or things like this, the methods showNext()
and showPrevious()
are just to go forward or back and I need to go to any other layouts.
Is there a method for ViewFlipper
to go from layout 1(or other layouts) to other layouts(that are not the neighbouring layouts) or the ViewFlipper
knows just to go next, previous or the first layout(child)?