Android Programming Press on the image to return to the main documentation page.

FloatingActionButton

Written by DonManfred (wrapper)

List of types:

FloatingActionButton
FloatingActionMenu

FloatingActionButton


Events:

None

Members:


  ba As BA

  Background As android.graphics.drawable.Drawable

  BringToFront

  ButtonSize As Int

  Color As Int [write only]

  ColorDisabled As Int

  ColorNormal As Int

  ColorPressed As Int

  ColorRipple As Int

  DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)

  Elevation As Float [write only]

  ElevationCompat As Float [write only]

  Enabled As Boolean

  hasShadow As Boolean

  Height As Int

  hide (animate As Boolean)

  HideAnimation As android.view.animation.Animation [write only]

  hideButtonInMenu (animate As Boolean)

  hideProgress

  IconDrawable As String [write only]

  ImageDrawable As android.graphics.drawable.Drawable [write only]

  Indeterminate As Boolean [write only]

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  isHidden As Boolean

  IsInitialized As Boolean

  isProgressBackgroundShown As Boolean

  isProgressIndeterminate As Boolean

  LabelText As String

  LabelVisibility As Int

  Left As Int

  Max As Int

  Parent As Object [read only]

  Progress As Int [read only]

  ProgressBackgroundColor As Int

  ProgressColor As Int

  ProgressWidth As Int

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)

  setProgress (progress As Int, animate As Boolean)

  SetVisibleAnimated (arg0 As Int, arg1 As Boolean)

  ShadowColor As Int

  ShadowRadius As Int

  ShadowXOffset As Int

  ShadowYOffset As Int

  show (animate As Boolean)

  ShowAnimation As android.view.animation.Animation [write only]

  showButtonInMenu (animate As Boolean)

  ShowProgressBackground As Boolean [write only]

  ShowShadow As Boolean [write only]

  Tag As Object

  toggle (animate As Boolean)

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

ba As BA
Background As android.graphics.drawable.Drawable
BringToFront
ButtonSize As Int
Sets the size of the FloatingActionButton and invalidates its layout.
Color As Int [write only]
ColorDisabled As Int
ColorNormal As Int
ColorPressed As Int
ColorRipple As Int
DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
Elevation As Float [write only]
ElevationCompat As Float [write only]
Sets the shadow color and radius to mimic the native elevation.

API 21+: Sets the native elevation of this view, in pixels. Updates margins to
make the view hold its position in layout across different platform versions.

Enabled As Boolean
hasShadow As Boolean
Height As Int
hide (animate As Boolean)
Makes the FloatingActionButton to disappear and sets its visibility to {@link #INVISIBLE}
animate: if true - plays "hide animation"
HideAnimation As android.view.animation.Animation [write only]
hideButtonInMenu (animate As Boolean)
This will clear all AnimationListeners.
hideProgress
IconDrawable As String [write only]
ImageDrawable As android.graphics.drawable.Drawable [write only]
Indeterminate As Boolean [write only]

Change the indeterminate mode for the progress bar. In indeterminate
mode, the progress is ignored and the progress bar shows an infinite
animation instead.

Initialize (EventName As String)
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
isHidden As Boolean
Checks whether FloatingActionButton is hidden
Return type: @return:true if FloatingActionButton is hidden, false otherwise
IsInitialized As Boolean
isProgressBackgroundShown As Boolean
isProgressIndeterminate As Boolean

Return type: @return:the mProgressIndeterminate
LabelText As String
LabelVisibility As Int
Left As Int
Max As Int
Parent As Object [read only]
Progress As Int [read only]
ProgressBackgroundColor As Int
ProgressColor As Int
ProgressWidth As Int
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
setProgress (progress As Int, animate As Boolean)
SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
ShadowColor As Int
ShadowRadius As Int
Sets the shadow radius of the FloatingActionButton and invalidates its layout.


Must be specified in density-independent (dp) pixels, which are then converted into actual
pixels (px).

ShadowXOffset As Int
Sets the shadow x offset of the FloatingActionButton and invalidates its layout.


Must be specified in density-independent (dp) pixels, which are then converted into actual
pixels (px).

ShadowYOffset As Int
Sets the shadow y offset of the FloatingActionButton and invalidates its layout.


Must be specified in density-independent (dp) pixels, which are then converted into actual
pixels (px).

show (animate As Boolean)
Makes the FloatingActionButton to appear and sets its visibility to {@link #VISIBLE}
animate: if true - plays "show animation"
ShowAnimation As android.view.animation.Animation [write only]
showButtonInMenu (animate As Boolean)
ShowProgressBackground As Boolean [write only]
ShowShadow As Boolean [write only]
Tag As Object
toggle (animate As Boolean)
Top As Int
Visible As Boolean
Width As Int

FloatingActionMenu


Events:

onMenuToggle(opened As boolean)
onClick(obj As View)

Members:


  ActivityHeight As Int [write only]

  ActivityWidth As Int [write only]

  addMenuButton (fab As com.github.clans.fab.FloatingActionButton)

  addMenuButton2 (fab As com.github.clans.fab.FloatingActionButton, index As Int)

  Animated As Boolean [write only]

  AnimationDelayPerItem As Int

  ba As BA

  Background As android.graphics.drawable.Drawable

  BringToFront

  close (animate As Boolean)

  ClosedOnTouchOutside As Boolean [write only]

  Color As Int [write only]

  DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)

  Enabled As Boolean

  Height As Int

  hideMenu (animate As Boolean)

  hideMenuButton (animate As Boolean)

  IconAnimated As Boolean [write only]

  IconAnimationCloseInterpolator As android.view.animation.Interpolator [write only]

  IconAnimationInterpolator As android.view.animation.Interpolator [write only]

  IconAnimationOpenInterpolator As android.view.animation.Interpolator [write only]

  IconToggleAnimatorSet As android.animation.AnimatorSet

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  isAnimated As Boolean

  isIconAnimated As Boolean

  IsInitialized As Boolean

  isMenuButtonHidden As Boolean

  isMenuHidden As Boolean

  isOpened As Boolean

  LabelsCornerRadius As Int

  LabelsMargin As Int

  LabelsMaxLines As Int

  LabelsPaddingBottom As Int

  LabelsPaddingLeft As Int

  LabelsPaddingRight As Int

  LabelsPaddingTop As Int

  LabelsPosition As Int

  Left As Int

  MenuButtonColorNormal As Int

  MenuButtonColorPressed As Int

  MenuButtonColorRipple As Int

  MenuButtonHideAnimation As android.view.animation.Animation [write only]

  MenuButtonLabelText As String

  MenuButtonShowAnimation As android.view.animation.Animation [write only]

  MenuIconView As android.widget.ImageView [read only]

  open (animate As Boolean)

  OpenDirection As Int

  Parent As Object [read only]

  removeAllMenuButtons

  removeMenuButton (fab As com.github.clans.fab.FloatingActionButton)

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)

  SetVisibleAnimated (arg0 As Int, arg1 As Boolean)

  showMenu (animate As Boolean)

  showMenuButton (animate As Boolean)

  Tag As Object

  toggle (animate As Boolean)

  toggleMenu (animate As Boolean)

  toggleMenuButton (animate As Boolean)

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

ActivityHeight As Int [write only]
ActivityWidth As Int [write only]
addMenuButton (fab As com.github.clans.fab.FloatingActionButton)
addMenuButton2 (fab As com.github.clans.fab.FloatingActionButton, index As Int)
Animated As Boolean [write only]
Sets whether open and close actions should be animated
AnimationDelayPerItem As Int
ba As BA
Background As android.graphics.drawable.Drawable
BringToFront
close (animate As Boolean)
ClosedOnTouchOutside As Boolean [write only]
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
Enabled As Boolean
Height As Int
hideMenu (animate As Boolean)
Makes the {@link #FloatingActionMenu} to disappear and sets its visibility to {@link #INVISIBLE}
animate: if true - plays "hide animation"
hideMenuButton (animate As Boolean)
Makes the {@link FloatingActionButton} to disappear inside the {@link #FloatingActionMenu} and
sets its visibility to {@link #INVISIBLE}
animate: if true - plays "hide animation"
IconAnimated As Boolean [write only]
IconAnimationCloseInterpolator As android.view.animation.Interpolator [write only]
IconAnimationInterpolator As android.view.animation.Interpolator [write only]
Sets the {@link android.view.animation.Interpolator} for FloatingActionButton's icon animation.
IconAnimationOpenInterpolator As android.view.animation.Interpolator [write only]
IconToggleAnimatorSet As android.animation.AnimatorSet
Initialize (EventName As String)
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
isAnimated As Boolean
isIconAnimated As Boolean
IsInitialized As Boolean
isMenuButtonHidden As Boolean
isMenuHidden As Boolean
isOpened As Boolean
LabelsCornerRadius As Int
LabelsMargin As Int
LabelsMaxLines As Int
LabelsPaddingBottom As Int
LabelsPaddingLeft As Int
LabelsPaddingRight As Int
LabelsPaddingTop As Int
LabelsPosition As Int
Left As Int
MenuButtonColorNormal As Int
MenuButtonColorPressed As Int
MenuButtonColorRipple As Int
MenuButtonHideAnimation As android.view.animation.Animation [write only]
MenuButtonLabelText As String
MenuButtonShowAnimation As android.view.animation.Animation [write only]
MenuIconView As android.widget.ImageView [read only]
open (animate As Boolean)
OpenDirection As Int
Parent As Object [read only]
removeAllMenuButtons
removeMenuButton (fab As com.github.clans.fab.FloatingActionButton)
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
showMenu (animate As Boolean)
Makes the whole {@link #FloatingActionMenu} to appear and sets its visibility to {@link #VISIBLE}
animate: if true - plays "show animation"
showMenuButton (animate As Boolean)
Makes the {@link FloatingActionButton} to appear inside the {@link #FloatingActionMenu} and
sets its visibility to {@link #VISIBLE}
animate: if true - plays "show animation"
Tag As Object
toggle (animate As Boolean)
toggleMenu (animate As Boolean)
toggleMenuButton (animate As Boolean)
Top As Int
Visible As Boolean
Width As Int

Top