ViewFlipper
Last Updated On 2021-07-16
Version 1MinSDK 7Tutorial Video
View flipper component lets you add flipping between views
Properties
You can set the below properties in the UI part of the builder.
- Animation - it's a screen animation value which is set to default by default.
- AutoStart - it's a boolean value which is set to false by default.
- DisplayChild - it's a non negative integer value which is set to 0 by default.
- HeihMargin - it's a four value which is set to 0,0,0,0 by default.
- HeihPadding - it's a four value which is set to 0,0,0,0 by default.
- Interval - it's a non negative integer value which is set to 500 by default.
- MarginBottom - it's a non negative float value which is set to 0 by default.
- MarginLeft - it's a non negative float value which is set to 0 by default.
- MarginRight - it's a non negative float value which is set to 0 by default.
- MarginTop - it's a non negative float value which is set to 0 by default.
- PaddingBottom - it's a non negative float value which is set to 0 by default.
- PaddingLeft - it's a non negative float value which is set to 0 by default.
- PaddingRight - it's a non negative float value which is set to 0 by default.
- PaddingTop - it's a non negative float value which is set to 0 by default.
- Visible - it's a visibility value which is set to true by default.
Block Properties
You can set the below blocks properties in the blocks section of the builder.
Animation
Property for Animation
AutoStart
Sets if the view flipper should start flipping automatically or not
DisplayChild
Set the interval in millisends of flipping between views
Height
Specifies the vertical height of the NiotronViewFlipper, measured in pixels.
HeightPercent
Specifies the vertical height of the NiotronViewFlipper as a percentage of the height of the Screen.
Interval
Set the interval in millisends of flipping between views
MarginBottom
Property for MarginBottom
MarginLeft
Property for MarginLeft
MarginRight
Property for MarginRight
MarginTop
Property for MarginTop
PaddingBottom
Property for PaddingBottom
PaddingLeft
Property for PaddingLeft
PaddingRight
Property for PaddingRight
PaddingTop
Property for PaddingTop
Visible
Specifies whether the NiotronViewFlipper should be visible on the screen. Value is true if the NiotronViewFlipper is showing and false if hidden.
Width
Specifies the horizontal width of the NiotronViewFlipper, measured in pixels.
WidthPercent
Specifies the horizontal width of the NiotronViewFlipper as a percentage of the width of the Screen.
isFlipping
Returns if the view flipper autostarted of not
Methods
You can set the below method blocks in the blocks section of the builder.
AddView
Adds view to ViewFlipper. Accepts Visible components or the list of visible components
RemoveView
Removes a page from viewpager
StartFlipping
Starts the flipping action
StopFlipping
Starts the flipping action