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

iCircleMenu

List of types:

CircleMenu

CircleMenu


Events:

MenuWillDisplay (aButton As Button, Index As Int)
ButtonDidSelect (aButton As Button, Index As Int)
ButtonWillSelect (aButton As Button, Index As Int)
ButtonTouchDown (aButton As Button, Index As Int)
MenuCollapsed
Click
LongClick

Members:


  Alpha As Float

  BringToFront

  ButtonsCount As Int

  ButtonsIsShown As Boolean

  CalcRelativeKeyboardHeight (KeyboardHeight As Double) As Double

  Color As Int

  CustomLabel As LabelWrapper [read only]

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

  Distance As Float

  Duration As Int

  Enabled As Boolean

  Height As Float

  HideButtons (Duration As Int, HideDelay As Int)

  Initialize (EventName As String, Style1 As Object)

  InitializeCustom (EventName As String, TextColor As Int, PressedTextColor As Int)

  IsFocused As Boolean [read only]

  IsInitialized As Boolean

  Left As Float

  Parent As ViewWrapper [read only]

  RemoveViewFromParent

  RequestFocus As Boolean

  ResignFocus As Boolean

  SendToBack

  SetAlphaAnimated (DurationMS As Int, Alpha As Float)

  SetBorder (Width As Float, Color As Int, CornerRadius As Float)

  SetColorAnimated (DurationMS As Int, BackgroundColor As Int)

  SetIconToButton (Button As ButtonWrapper, Icon As String)

  SetLayoutAnimated (DurationMS As Int, DampingRatio As Float, Left As Float, Top As Float, Width As Float, Height As Float)

  SetParallaxEffect (Vertical As Int, Horizontal As Int)

  SetShadow (Color As Int, OffsetX As Float, OffsetY As Float, Opacity As Float, StaticRect As Boolean)

  ShowDelay As Int

  SizeToFit

  STYLE_CONTACT_ADD As Object [read only]

  STYLE_DETAIL_DISCLOSURE As Object [read only]

  STYLE_INFO As Object [read only]

  STYLE_SYSTEM As Object [read only]

  Tag As Object

  Text As String

  TintColor As Int

  Top As Float

  UserInteractionEnabled As Boolean

  Visible As Boolean

  Width As Float

Members description:

Alpha As Float
Gets or sets the view's alpha level. 0 - transparent, 1 (default) - fully opaque.
BringToFront
Brings the view to front.
ButtonsCount As Int
Buttons count
ButtonsIsShown As Boolean
Check is sub buttons showed
CalcRelativeKeyboardHeight (KeyboardHeight As Double) As Double
Calculates the keyboard top point relative to the current view.
Color As Int
Gets or sets the view's background color.
CustomLabel As LabelWrapper [read only]
Gets the inner label. You can use this property to customize custom buttons.
DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
Distance As Float
Distance between center button and buttons
Duration As Int
Circle animation duration
Enabled As Boolean
Gets or sets whether the view is enabled.
Height As Float
Gets or sets the view's height.
HideButtons (Duration As Int, HideDelay As Int)
Hide button
Duration: The duration, in milliseconds, of the animation.
HideDelay: The time to delay, in milliseconds.
Initialize (EventName As String, Style1 As Object)
Initializes a system button.
Example:
Dim b1 As Button
b1.Initialize("b1", b1.STYLE_SYSTEM)
InitializeCustom (EventName As String, TextColor As Int, PressedTextColor As Int)
Initializes a custom button. Sets the text default color and the pressed state color.
IsFocused As Boolean [read only]
Returns true if the view is focused.
IsInitialized As Boolean
Tests whether this object was initialized.
Left As Float
Gets or sets the view's left position.
Parent As ViewWrapper [read only]
Returns the views parent. The returned view can be uninitialized (if there is no parent).
RemoveViewFromParent
Removes the view from its parent (same as B4A View.RemoveView method).
RequestFocus As Boolean
Tries to set the focus on the current view. Returns True if the focus was set. Most views are not focusable.
When a text view is focused the keyboard is shown.
ResignFocus As Boolean
Removes the focus from the current view. Removing the focus from a text view will hide the keyboard.
SendToBack
Sends the view to the back.
SetAlphaAnimated (DurationMS As Int, Alpha As Float)
Animates the view's alpha level.
DurationMS - Animation duration measured in milliseconds.
Alpha - The new alpha level (0 - transparent, 1 - fully opaque).
SetBorder (Width As Float, Color As Int, CornerRadius As Float)
Sets the view's border width, color and corner radius.
Note that the corner radius should be 0 if the view should show a shadow as well.
SetColorAnimated (DurationMS As Int, BackgroundColor As Int)
Animates the view's background color.
DurationMS - Animation duration measured in milliseconds.
BackgroundColor - The new background color.
Note that Labels do not support this type of animation.
SetIconToButton (Button As ButtonWrapper, Icon As String)
Sets an icon to a button
SetLayoutAnimated (DurationMS As Int, DampingRatio As Float, Left As Float, Top As Float, Width As Float, Height As Float)
Animates the view's layout.
DurationMS - Animation duration measured in milliseconds. Set to 0 to change the layout immediately.
DampingRatio - If smaller than 1 then a spring effect will be applied to the animation. The minimum value should be 0.1.
Set to 1 for no spring effect.
Left, Top, Width and Height - The new layout.
SetParallaxEffect (Vertical As Int, Horizontal As Int)
Adds a parallax effect to the view. The view will slightly move when the device is tilted.
Vertical - Vertical offset. Can be a positive or negative value.
Horizontal - Horizontal offset. Can be a positive or negative value.
SetShadow (Color As Int, OffsetX As Float, OffsetY As Float, Opacity As Float, StaticRect As Boolean)
Adds a shadow to to the view. The border corners radius should be set to 0 when adding shadows.
Colors - The shadow color.
OffsetX, OffsetY - The horizontal and vertical offsets.
Opacity - Sets the shadow opacity: 0 - transparent, 1 - opaque.
StaticRect - (optimization parameter) Set this parameter to True if the view's size is constant.
ShowDelay As Int
Delay between show buttons
SizeToFit
Resizes the view to make it fit its content.
STYLE_CONTACT_ADD As Object [read only]
STYLE_DETAIL_DISCLOSURE As Object [read only]
STYLE_INFO As Object [read only]
STYLE_SYSTEM As Object [read only]
Tag As Object
Gets or sets the Tag object. This is a placeholder for any object you like to tie to this object.
Text As String
Gets or sets the button's text.
TintColor As Int
Gets or sets the view's tint color. Some views use this color to change their appearance.
Top As Float
Gets or sets the view's top position.
UserInteractionEnabled As Boolean
Gets or sets whether the user can interact with this view. True by default.
Visible As Boolean
Gets or sets whether the view is visible.
Width As Float
Gets or sets the view's width.
Top