FlipLayout
Use the FlipLayout as a ViewGroup to easily swap between child views.
Include in your project
In your root/build.gradle
In your app/build.gradle
Usage
Simply use the FrameLayout public methods to change which view is visible.Examples (click image to expand code)
Use to simply flip one view with another
OR
Use to swap over several views
Customization
Attribute | Type | Description | Default |
---|---|---|---|
startingChild | int | First visible child | 0 |
transitionDuration | int | The ending angle for button disposition | 200 |
transition | enum | The type of the transition, one of: FADE, FLIP_X, FLIP_Y, TRANSLATE_X, TRANSLATE_Y, FLIP_Z1, FLIP_Z2 | FLIP_Y |