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

AppCompat

Written by Markus Stipp

List of types:

ACActionBar
ACActionMenu
ACActionMode
ACButton
ACCheckBox
ACEditText
ACFlatButton
ACMenu
ACMenuItem
ACPopupMenu
ACRadioButton
ACSearchView
ACSeekBar
ACSpinner
ACSubMenu
ACSwitch
ACToolBarDark
ACToolBarLight
AppCompat

ACActionBar


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  Elevation As Float

  Hide

  HomeVisible As Boolean [write only]

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

  Initialize

  IsShowing As Boolean

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

  Show

  ShowUpIndicator As Boolean [write only]

  Subtitle As String

  Title As String

  TitleVisible As Boolean [write only]

  UpIndicatorBitmap As android.graphics.Bitmap [write only]

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

Members description:

Elevation As Float
Sets or gets the elevation of the ActionBar. Does only have an effect on Android 5.0 and above.
Hide
Hide the ActionBar
HomeVisible As Boolean [write only]
Show/Hide the home icon
Icon As android.graphics.drawable.Drawable [write only]
Set the icon of the ActionBar

Drawable to be used for the Home Icon
Initialize
Initializes the object
IsShowing As Boolean
Returns if the ActionBar is currently hidden or not.
Logo As android.graphics.drawable.Drawable [write only]
Set a logo as icon
Show
Show the ActionBar
ShowUpIndicator As Boolean [write only]
Subtitle As String
Sets or gets the subtitle of the ActionBar
Title As String
Sets or gets the title of the ActionBar
TitleVisible As Boolean [write only]
Show/Hide the title
UpIndicatorBitmap As android.graphics.Bitmap [write only]
Set the up indicator bitmap. Useful for implementing the
NavigationDrawer pattern.

Bitmap: Bitmap to be used for the Icon
UpIndicatorDrawable As android.graphics.drawable.Drawable [write only]
Set the up indicator drawable. Useful for implementing the
NavigationDrawer pattern.

Icon: Drawable to be used for the Icon

ACActionMenu


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

MenuItemClick (Item as ACMenuItem)

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

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

  Enabled As Boolean

  Height As Int

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Menu As ACMenu [read only]

  OverflowMenuOpen As Boolean

  Padding() As Int

  Parent As Object [read only]

  PopupTheme As Int [write only]

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  Tag As Object

  THEME_DARK As Int

  THEME_LIGHT As Int

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
Height As Int
Gets or sets the view's height
Initialize (EventName As String)
Initializes the object.
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Menu As ACMenu [read only]
Gets the menu of the ActionMenu.
OverflowMenuOpen As Boolean
Shows/hides the overflow menu or return if overflow menu is currently showing.
Padding() As Int
Parent As Object [read only]
PopupTheme As Int [write only]
Sets the Popup theme.
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
Tag As Object
THEME_DARK As Int
THEME_LIGHT As Int
Top As Int
Gets or sets the view's top position
Visible As Boolean
Width As Int
Gets or sets the view's width

ACActionMode


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

ItemClicked (Item As ACMenuItem)
Created (Menu as ACMenu)
Prepared (Menu as ACMenu)
Closed

Members:


  Finish

  Initialize (EventName As String)

  Invalidate

  IsActive As Boolean

  Start

  SubTitle As String

  Title As String

Members description:

Finish
End the ActionMode and close the contextual ActionBar
Initialize (EventName As String)
Initialize the ActionMode object

EventName: Name for the Events
Invalidate
Invalidate the ActionMode and recreate the menu. If this method is called the _Prepared event is called again where the menu can be modified.
IsActive As Boolean
returns true if the ActionMode is currently active
Start
Start the ActionMode
SubTitle As String
Sets or gets the SubTitle
Title As String
Sets or gets the Title

ACButton


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Up
Down
Click
LongClick

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  ButtonColor As Int [write only]

  Color As Int [write only]

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

  Enabled As Boolean

  Gravity As Int

  Height As Int

  Initialize (arg1 As String)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Padding() As Int

  Parent As Object [read only]

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetButtonColors (PressedColor As Int, EnabledColor As Int, DisabledColor As Int)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetTextColorAnimated (arg0 As Int, arg1 As Int)

  SetTextSizeAnimated (arg0 As Int, arg1 As Float)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  Tag As Object

  Text As String

  TextColor As Int

  TextSize As Float

  Top As Int

  Typeface As android.graphics.Typeface

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
ButtonColor As Int [write only]
Change the Button Color
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
Gravity As Int
Height As Int
Gets or sets the view's height
Initialize (arg1 As String)
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Padding() As Int
Parent As Object [read only]
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetButtonColors (PressedColor As Int, EnabledColor As Int, DisabledColor As Int)
Change the Button Colors
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will
only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetTextColorAnimated (arg0 As Int, arg1 As Int)
SetTextSizeAnimated (arg0 As Int, arg1 As Float)
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
Tag As Object
Text As String
TextColor As Int
TextSize As Float
Top As Int
Gets or sets the view's top position
Typeface As android.graphics.Typeface
Visible As Boolean
Width As Int
Gets or sets the view's width

ACCheckBox


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

CheckedChange(Checked As Boolean)

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Checked As Boolean

  Color As Int [write only]

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

  Enabled As Boolean

  Gravity As Int

  Height As Int

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Padding() As Int

  Parent As Object [read only]

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetCheckBoxColors (EnabledColor As Int, CheckedColor As Int, DisabledColor As Int)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetTextColorAnimated (arg0 As Int, arg1 As Int)

  SetTextSizeAnimated (arg0 As Int, arg1 As Float)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  Tag As Object

  Text As String

  TextColor As Int

  TextSize As Float

  Top As Int

  Typeface As android.graphics.Typeface

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Checked As Boolean
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
Gravity As Int
Height As Int
Gets or sets the view's height
Initialize (EventName As String)
Initializes the object
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Padding() As Int
Parent As Object [read only]
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetCheckBoxColors (EnabledColor As Int, CheckedColor As Int, DisabledColor As Int)
Sets the Colors of the CheckBox
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetTextColorAnimated (arg0 As Int, arg1 As Int)
SetTextSizeAnimated (arg0 As Int, arg1 As Float)
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
Tag As Object
Text As String
TextColor As Int
TextSize As Float
Top As Int
Gets or sets the view's top position
Typeface As android.graphics.Typeface
Visible As Boolean
Width As Int
Gets or sets the view's width

ACEditText


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

EnterPressed
FocusChanged (HasFocus As Boolean)
TextChanged (Old As String, New As String)

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

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

  Enabled As Boolean

  ForceDoneButton As Boolean [write only]

  Gravity As Int

  Height As Int

  Hint As String

  HintColor As Int

  Initialize (arg1 As String)

  INPUT_TYPE_DECIMAL_NUMBERS As Int

  INPUT_TYPE_NONE As Int

  INPUT_TYPE_NUMBERS As Int

  INPUT_TYPE_PHONE As Int

  INPUT_TYPE_TEXT As Int

  InputType As Int

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Padding() As Int

  Parent As Object [read only]

  PasswordMode As Boolean [write only]

  RemoveView

  RequestFocus As Boolean

  SelectAll

  SelectionStart As Int

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetTextColorAnimated (arg0 As Int, arg1 As Int)

  SetTextSizeAnimated (arg0 As Int, arg1 As Float)

  setTintColor (DefaultColor As Int, FocusedColor As Int, DisabledColor As Int)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  SingleLine As Boolean [write only]

  Tag As Object

  Text As String

  TextColor As Int

  TextSize As Float

  Top As Int

  Typeface As android.graphics.Typeface

  Visible As Boolean

  Width As Int

  Wrap As Boolean [write only]

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
ForceDoneButton As Boolean [write only]
Gravity As Int
Height As Int
Gets or sets the view's height
Hint As String
HintColor As Int
Initialize (arg1 As String)
INPUT_TYPE_DECIMAL_NUMBERS As Int
INPUT_TYPE_NONE As Int
INPUT_TYPE_NUMBERS As Int
INPUT_TYPE_PHONE As Int
INPUT_TYPE_TEXT As Int
InputType As Int
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Padding() As Int
Parent As Object [read only]
PasswordMode As Boolean [write only]
RemoveView
RequestFocus As Boolean
SelectAll
SelectionStart As Int
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetTextColorAnimated (arg0 As Int, arg1 As Int)
SetTextSizeAnimated (arg0 As Int, arg1 As Float)
setTintColor (DefaultColor As Int, FocusedColor As Int, DisabledColor As Int)
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
SingleLine As Boolean [write only]
Tag As Object
Text As String
TextColor As Int
TextSize As Float
Top As Int
Gets or sets the view's top position
Typeface As android.graphics.Typeface
Visible As Boolean
Width As Int
Gets or sets the view's width
Wrap As Boolean [write only]

ACFlatButton


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Click
Down
LongClick
Up

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

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

  Enabled As Boolean

  Gravity As Int

  Height As Int

  Initialize (arg1 As String)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Padding() As Int

  Parent As Object [read only]

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetTextColorAnimated (arg0 As Int, arg1 As Int)

  SetTextSizeAnimated (arg0 As Int, arg1 As Float)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  Tag As Object

  Text As String

  TextColor As Int

  TextSize As Float

  Top As Int

  Typeface As android.graphics.Typeface

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
Gravity As Int
Height As Int
Gets or sets the view's height
Initialize (arg1 As String)
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Padding() As Int
Parent As Object [read only]
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetTextColorAnimated (arg0 As Int, arg1 As Int)
SetTextSizeAnimated (arg0 As Int, arg1 As Float)
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
Tag As Object
Text As String
TextColor As Int
TextSize As Float
Top As Int
Gets or sets the view's top position
Typeface As android.graphics.Typeface
Visible As Boolean
Width As Int
Gets or sets the view's width

ACMenu


Events:

None

Members:


  Add (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem

  Add2 (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem

  AddSubMenu (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence) As ACSubMenu

  AddWithGroup (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem

  AddWithGroup2 (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem

  Clear

  Close

  FindItem (ItemId As Int) As ACMenuItem

  GetItem (Index As Int) As ACMenuItem

  IsInitialized As Boolean

  RemoveGroup (GroupId As Int)

  RemoveItem (ItemId As Int)

  SetGroupCheckable (GroupId As Int, Checkable As Boolean, Exclusive As Boolean)

  SetGroupEnabled (GroupId As Int, Enable As Boolean)

  SetGroupVisible (GroupId As Int, Visible As Boolean)

  Size As Int

Members description:

Add (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem
Add a menu item to the menu

ItemId : Id for the item
Title : Title for the item
Icon : Bitmap that is used as an icon. Pass null for no icon.
Add2 (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem
Add a menu item to the menu

ItemId : Id for the item
SortOrder : Sort order id
Title : Title for the item
Icon : Drawable that is used as an icon. Pass null for no icon.
AddSubMenu (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence) As ACSubMenu
Add a Submenu to the menu.

GroupId : Id for the group
ItemId : Id for the item
SortOrder : Sort order id
Title : title of the menu
AddWithGroup (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem
Add a menu item to the menu and put this item into a group

GroupId : Id of the group
ItemId : Id for the item
Title : Title for the item
Icon : Bitmap that is used as an icon. Pass null for no icon.
AddWithGroup2 (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem
Add a menu item to the menu and put this item into a group.

GroupId : Id of the group
ItemId : Id for the item
SortOrder : Sort order id
Title : Title for the item
Icon : Drawable that is used as an icon. Pass null for no icon.
Clear
Clears all menu items from the menu.
Close
Close the menu if it is open.
FindItem (ItemId As Int) As ACMenuItem
returns the item with the given Id. Returns null if the item cannot be found.

ItemId : Id of the item to be searched for.
GetItem (Index As Int) As ACMenuItem
returns the item with the given index.
IsInitialized As Boolean
RemoveGroup (GroupId As Int)
Remove the group from the menu

GroupId : the group to remove
RemoveItem (ItemId As Int)
Remove Item from menu

ItemId : item to be removed
SetGroupCheckable (GroupId As Int, Checkable As Boolean, Exclusive As Boolean)
Make all items in the group checkable

GroupId : Id of the group
Checkable : True or False to make the group checkable or not
Exclusive : If set to True only one item can be checked at a time. All other items will be unchecked.
SetGroupEnabled (GroupId As Int, Enable As Boolean)
Make the given group enabled/disabled

GroupId : Id of the group
Enable : True or False to enable/disable the group
SetGroupVisible (GroupId As Int, Visible As Boolean)
Make the given group visible/invisible

GroupId : Id of the group
Visible : True or False to make the group visible/invisible
Size As Int
Returns the number of items in the menu

ACMenuItem


Events:

None

Members:


  ActionView As android.view.View [write only]

  Checkable As Boolean

  Checked As Boolean

  Enabled As Boolean

  GroupId As Int [read only]

  Icon As android.graphics.drawable.Drawable

  Id As Int [read only]

  IsInitialized As Boolean

  ItemCollapsed As Boolean

  SearchView As ACSearchView [write only]

  SHOW_AS_ACTION_ALWAYS As Int

  SHOW_AS_ACTION_IF_ROOM As Int

  SHOW_AS_ACTION_NEVER As Int

  SHOW_AS_ACTION_WITH_TEXT As Int

  ShowAsAction As Int [write only]

  SubMenu As ACSubMenu [read only]

  Title As String

  Visible As Boolean

Members description:

ActionView As android.view.View [write only]
Set an ActionView for this menu item.
Checkable As Boolean
Make the item checkable
Checked As Boolean
Check the item
Enabled As Boolean
Enable/disable the item
GroupId As Int [read only]
Gets the group id of the item.
Icon As android.graphics.drawable.Drawable
Sets or gets the Icon for the menu item.

Icon : Icon drawable
Id As Int [read only]
Gets the item id
IsInitialized As Boolean
ItemCollapsed As Boolean
Set/get the item to collapsed mode. (For the SearchView for example)
SearchView As ACSearchView [write only]
Connects a SearchView to this MenuItem.

SearchView: Instance of a SearchView object
SHOW_AS_ACTION_ALWAYS As Int
SHOW_AS_ACTION_IF_ROOM As Int
SHOW_AS_ACTION_NEVER As Int
SHOW_AS_ACTION_WITH_TEXT As Int
ShowAsAction As Int [write only]
Show menu item as action if possible.
SubMenu As ACSubMenu [read only]
Gets the Submenu of this item if it has one.
Title As String
Sets/gets the title of the menu
Visible As Boolean
Show/hide the item

ACPopupMenu


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

ItemClicked (Item As ACMenuItem)
Closed

Members:


  AddMenuItem (ItemId As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem

  Close

  GetItem (ItemId As Int) As android.view.MenuItem

  GetMenu As ACMenu

  Initialize (EventName As String, View As android.view.View)

  RemoveMenuItem (ItemId As Int)

  Show

Members description:

AddMenuItem (ItemId As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem
Add a new menu item and then returns it.

ItemId: Id for the menu item Title: Title for the menu Icon: Drawable to
be shown as menu icon
Close
Close the Popup menu
GetItem (ItemId As Int) As android.view.MenuItem
Get the Menu Item Object for a given Id
GetMenu As ACMenu
Gets the menu object
Initialize (EventName As String, View As android.view.View)
Initialize the PopupMenu

EventName: Name for the events View: Anchor View which is used for the
PopupMenu position
RemoveMenuItem (ItemId As Int)
Remove menu item

ItemId: Item to be removed
Show
Show the popup menu.

ACRadioButton


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

CheckedChange(Checked As Boolean)

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Checked As Boolean

  Color As Int [write only]

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

  Enabled As Boolean

  Gravity As Int

  Height As Int

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Padding() As Int

  Parent As Object [read only]

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetTextColorAnimated (arg0 As Int, arg1 As Int)

  SetTextSizeAnimated (arg0 As Int, arg1 As Float)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  Tag As Object

  Text As String

  TextColor As Int

  TextSize As Float

  Top As Int

  Typeface As android.graphics.Typeface

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Checked As Boolean
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
Gravity As Int
Height As Int
Gets or sets the view's height
Initialize (EventName As String)
Initializes the object
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Padding() As Int
Parent As Object [read only]
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetTextColorAnimated (arg0 As Int, arg1 As Int)
SetTextSizeAnimated (arg0 As Int, arg1 As Float)
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
Tag As Object
Text As String
TextColor As Int
TextSize As Float
Top As Int
Gets or sets the view's top position
Typeface As android.graphics.Typeface
Visible As Boolean
Width As Int
Gets or sets the view's width

ACSearchView


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

QuerySubmitted (Query as String)
QueryChanged (Query as String)
Closed

Members:


  Iconfied As Boolean

  IconifiedByDefault As Boolean

  Initialize (EventName As String)

  Initialize2 (EventName As String, Theme As Int)

  mSearchView As android.support.v7.widget.SearchView

  Query As String

  QueryHint As String

  Submit

  SubmitButtonEnabled As Boolean

  THEME_DARK As Int

  THEME_LIGHT As Int

Members description:

Iconfied As Boolean
Set/Get if the SerachView is iconified
IconifiedByDefault As Boolean
Set/Get if the SearchView is iconified by default
Initialize (EventName As String)
Initialize the object

EventName: Name of the event
Initialize2 (EventName As String, Theme As Int)
Initialize the object

EventName: Name of the event
Theme: Theme to use (DARK or LIGHT)
mSearchView As android.support.v7.widget.SearchView
Query As String
Set/Get the query text

Query: Text to set
QueryHint As String
Set/Get the query hint

Hint: Text to set
Submit
Programatically Submit the search phrase.
SubmitButtonEnabled As Boolean
Set/Get if the submit button is enabled
THEME_DARK As Int
THEME_LIGHT As Int

ACSeekBar


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

ValueChanged (Value As Int, UserChanged As Boolean)

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

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

  Enabled As Boolean

  Height As Int

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Max As Int

  Padding() As Int

  Parent As Object [read only]

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  Tag As Object

  Top As Int

  Value As Int

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
Height As Int
Gets or sets the view's height
Initialize (EventName As String)
Initializes the object
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Max As Int
Padding() As Int
Parent As Object [read only]
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
Tag As Object
Top As Int
Gets or sets the view's top position
Value As Int
Visible As Boolean
Width As Int
Gets or sets the view's width

ACSpinner


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

ItemClick (Position As Int, Value As Object)
Closed

Members:


  Add (Item As CharSequence)

  Add2 (Item As CharSequence, Icon As android.graphics.drawable.Drawable)

  AddAll (List As List)

  Background As android.graphics.drawable.Drawable

  BringToFront

  Clear

  Color As Int [write only]

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

  DropdownBackgroundColor As Int

  DropdownTextColor As Int

  Enabled As Boolean

  GetItem (Index As Int) As String

  Height As Int

  IndexOf (value As CharSequence) As Int

  Initialize (EventName As String)

  Initialize2 (EventName As String, Theme As Int)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Padding() As Int

  Parent As Object [read only]

  Prompt As String

  RemoveAt (Index As Int)

  RemoveView

  RequestFocus As Boolean

  SelectedIndex As Int

  SelectedItem As String [read only]

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  Size As Int [read only]

  Tag As Object

  TextColor As Int

  TextSize As Float

  THEME_DARK As Int

  THEME_LIGHT As Int

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

Add (Item As CharSequence)
Add2 (Item As CharSequence, Icon As android.graphics.drawable.Drawable)
AddAll (List As List)
Background As android.graphics.drawable.Drawable
BringToFront
Clear
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
DropdownBackgroundColor As Int
DropdownTextColor As Int
Enabled As Boolean
GetItem (Index As Int) As String
Height As Int
Gets or sets the view's height
IndexOf (value As CharSequence) As Int
Initialize (EventName As String)
Initializes the object
Initialize2 (EventName As String, Theme As Int)
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Padding() As Int
Parent As Object [read only]
Prompt As String
Sets or gets the title that will be displayed when the spinner is opened.
RemoveAt (Index As Int)
RemoveView
RequestFocus As Boolean
SelectedIndex As Int
Gets or sets the index of the selected item. Returns -1 if no item is
selected.
SelectedItem As String [read only]
Returns the value of the selected item
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
Size As Int [read only]
Returns the number of items
Tag As Object
TextColor As Int
TextSize As Float
THEME_DARK As Int
THEME_LIGHT As Int
Top As Int
Gets or sets the view's top position
Visible As Boolean
Width As Int
Gets or sets the view's width

ACSubMenu


Events:

None

Members:


  Add (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem

  Add2 (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem

  AddSubMenu (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence) As ACSubMenu

  AddWithGroup (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem

  AddWithGroup2 (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem

  Clear

  ClearHeader

  Close

  FindItem (ItemId As Int) As ACMenuItem

  GetItem (Index As Int) As ACMenuItem

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

  HeaderTitle As CharSequence [write only]

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

  IsInitialized As Boolean

  RemoveGroup (GroupId As Int)

  RemoveItem (ItemId As Int)

  SetGroupCheckable (GroupId As Int, Checkable As Boolean, Exclusive As Boolean)

  SetGroupEnabled (GroupId As Int, Enable As Boolean)

  SetGroupVisible (GroupId As Int, Visible As Boolean)

  Size As Int

Members description:

Add (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem
Add a menu item to the menu

ItemId : Id for the item
Title : Title for the item
Icon : Bitmap that is used as an icon. Pass null for no icon.
Add2 (ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem
Add a menu item to the menu

ItemId : Id for the item
SortOrder : Sort order id
Title : Title for the item
Icon : Drawable that is used as an icon. Pass null for no icon.
AddSubMenu (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence) As ACSubMenu
Add a Submenu to the menu.

GroupId : Id for the group
ItemId : Id for the item
SortOrder : Sort order id
Title : title of the menu
AddWithGroup (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.Bitmap) As ACMenuItem
Add a menu item to the menu and put this item into a group

GroupId : Id of the group
ItemId : Id for the item
Title : Title for the item
Icon : Bitmap that is used as an icon. Pass null for no icon.
AddWithGroup2 (GroupId As Int, ItemId As Int, SortOrder As Int, Title As CharSequence, Icon As android.graphics.drawable.Drawable) As ACMenuItem
Add a menu item to the menu and put this item into a group.

GroupId : Id of the group
ItemId : Id for the item
SortOrder : Sort order id
Title : Title for the item
Icon : Drawable that is used as an icon. Pass null for no icon.
Clear
Clears all menu items from the menu.
ClearHeader
Close
Close the menu if it is open.
FindItem (ItemId As Int) As ACMenuItem
returns the item with the given Id. Returns null if the item cannot be found.

ItemId : Id of the item to be searched for.
GetItem (Index As Int) As ACMenuItem
returns the item with the given index.
HeaderIcon As android.graphics.drawable.Drawable [write only]
HeaderTitle As CharSequence [write only]
Icon As android.graphics.drawable.Drawable [write only]
IsInitialized As Boolean
RemoveGroup (GroupId As Int)
Remove the group from the menu

GroupId : the group to remove
RemoveItem (ItemId As Int)
Remove Item from menu

ItemId : item to be removed
SetGroupCheckable (GroupId As Int, Checkable As Boolean, Exclusive As Boolean)
Make all items in the group checkable

GroupId : Id of the group
Checkable : True or False to make the group checkable or not
Exclusive : If set to True only one item can be checked at a time. All other items will be unchecked.
SetGroupEnabled (GroupId As Int, Enable As Boolean)
Make the given group enabled/disabled

GroupId : Id of the group
Enable : True or False to enable/disable the group
SetGroupVisible (GroupId As Int, Visible As Boolean)
Make the given group visible/invisible

GroupId : Id of the group
Visible : True or False to make the group visible/invisible
Size As Int
Returns the number of items in the menu

ACSwitch


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

CheckedChange(Checked As Boolean)

Members:


  Background As android.graphics.drawable.Drawable

  BringToFront

  Checked As Boolean

  Color As Int [write only]

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

  Enabled As Boolean

  Gravity As Int

  Height As Int

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  Padding() As Int

  Parent As Object [read only]

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetTextColorAnimated (arg0 As Int, arg1 As Int)

  SetTextSizeAnimated (arg0 As Int, arg1 As Float)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  ShowText As Boolean

  Tag As Object

  Text As String

  TextColor As Int

  TextOff As String

  TextOn As String

  TextSize As Float

  Top As Int

  Typeface As android.graphics.Typeface

  Visible As Boolean

  Width As Int

Members description:

Background As android.graphics.drawable.Drawable
BringToFront
Checked As Boolean
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Enabled As Boolean
Gravity As Int
Height As Int
Gets or sets the view's height
Initialize (EventName As String)
Initializes the object
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
Padding() As Int
Parent As Object [read only]
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetTextColorAnimated (arg0 As Int, arg1 As Int)
SetTextSizeAnimated (arg0 As Int, arg1 As Float)
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
ShowText As Boolean
Sets or gets whether the on/off text should be displayed.
Tag As Object
Text As String
TextColor As Int
TextOff As String
Sets or gets the text displayed when the button is in the unchecked state.
TextOn As String
Sets or gets the text displayed when the button is in the checked state.
TextSize As Float
Top As Int
Gets or sets the view's top position
Typeface As android.graphics.Typeface
Visible As Boolean
Width As Int
Gets or sets the view's width

ACToolBarDark


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

NavigationItemClick
MenuItemClick (Item as ACMenuItem)

Members:


  AddView (View As android.view.View, Width As Int, Height As Int, Gravity As Int)

  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

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

  Elevation As Float

  Enabled As Boolean

  GetAllViewsRecursive As IterableList

  GetView (Index As Int) As ConcreteViewWrapper

  Height As Int

  Initialize (EventName As String)

  InitMenuListener

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  LogoBitmap As android.graphics.Bitmap [write only]

  LogoDrawable As android.graphics.drawable.Drawable

  Menu As ACMenu [read only]

  MinHeight As Int

  NavigationIconBitmap As android.graphics.Bitmap [write only]

  NavigationIconDrawable As android.graphics.drawable.Drawable

  NumberOfViews As Int [read only]

  Padding() As Int

  Parent As Object [read only]

  PopupTheme As Int [write only]

  RemoveAllViews

  RemoveView

  RemoveViewAt (Index As Int)

  RequestFocus As Boolean

  SendToBack

  SetAsActionBar

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetElevationAnimated (Duration As Int, Elevation As Float)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  SubTitle As String

  SubTitleTextColor As Int [write only]

  Tag As Object

  THEME_DARK As Int

  THEME_LIGHT As Int

  Title As String

  TitleTextColor As Int [write only]

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

AddView (View As android.view.View, Width As Int, Height As Int, Gravity As Int)
Add a view to the ToolBar. The width is the available space between an
Icon/Logo on the left and the actions on the right.
Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Elevation As Float
Enabled As Boolean
GetAllViewsRecursive As IterableList
Gets all Views added to the Toolbar.
GetView (Index As Int) As ConcreteViewWrapper
Gets the view for the given Index
Height As Int
Gets or sets the view's height
Initialize (EventName As String)
Initializes the object.
InitMenuListener
Reinitializes the Menu listener. This is necessary if you set the ToolBar
as your activities ActionBar and you want to customize the menu at
runtime.
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
LogoBitmap As android.graphics.Bitmap [write only]
Sets a bitmap as a Logo. A logo in a toolbar is not clickable.
LogoDrawable As android.graphics.drawable.Drawable
Sets or gets the Logo for the Toolbar. The logo is not clickable and is
vertically centered in the toolbar.
Menu As ACMenu [read only]
Gets the menu of the ToolBar
MinHeight As Int
Sets or gets the minimum height of the ToolBar. The MinHeight property is
handled in a special way on ToolBars. The Overflow menu button and the
navigation item are vertically centered relative to the MinHeight. So if
you have a ToolBar with a height of 112dip and a minheight of 56dip the
Overflow menu and navigation item are placed in the upper half of the
ToolBar. If you don't set MinHeight the items are placed centered
relative to the whole ToolBar height.
NavigationIconBitmap As android.graphics.Bitmap [write only]
Sets the navigation item for the toolbar. This icon is clickable.
NavigationIconDrawable As android.graphics.drawable.Drawable
Sets or gets the navigation icon for the toolbar. This icon is clickable.
NumberOfViews As Int [read only]
Returns the number of Views in this ToolBar
Padding() As Int
Parent As Object [read only]
PopupTheme As Int [write only]
Sets the Popup theme.

MUST be run before Toolbar.SetAsActionBar !
RemoveAllViews
Remove all views from the ToolBar
RemoveView
RemoveViewAt (Index As Int)
Remove view with the given Index
RequestFocus As Boolean
SendToBack
SetAsActionBar
Set this Toolbar as the activity main ActionBar
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetElevationAnimated (Duration As Int, Elevation As Float)
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will
only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
SubTitle As String
Sets or gets the SubTitle of the Toolbar
SubTitleTextColor As Int [write only]
Sets the subtitle text color
Tag As Object
THEME_DARK As Int
THEME_LIGHT As Int
Title As String
Sets or gets the Title of the Toolbar
TitleTextColor As Int [write only]
Sets the title text color
Top As Int
Gets or sets the view's top position
Visible As Boolean
Width As Int
Gets or sets the view's width

ACToolBarLight


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

NavigationItemClick
MenuItemClick (Item as ACMenuItem)

Members:


  AddView (View As android.view.View, Width As Int, Height As Int, Gravity As Int)

  Background As android.graphics.drawable.Drawable

  BringToFront

  Color As Int [write only]

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

  Elevation As Float

  Enabled As Boolean

  GetAllViewsRecursive As IterableList

  GetView (Index As Int) As ConcreteViewWrapper

  Height As Int

  Initialize (EventName As String)

  InitMenuListener

  Invalidate

  Invalidate2 (Rect As android.graphics.Rect)

  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)

  IsInitialized As Boolean

  Left As Int

  LogoBitmap As android.graphics.Bitmap [write only]

  LogoDrawable As android.graphics.drawable.Drawable

  Menu As ACMenu [read only]

  MinHeight As Int

  NavigationIconBitmap As android.graphics.Bitmap [write only]

  NavigationIconDrawable As android.graphics.drawable.Drawable

  NumberOfViews As Int [read only]

  Padding() As Int

  Parent As Object [read only]

  PopupTheme As Int [write only]

  RemoveAllViews

  RemoveView

  RemoveViewAt (Index As Int)

  RequestFocus As Boolean

  SendToBack

  SetAsActionBar

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)

  SetElevationAnimated (Duration As Int, Elevation As Float)

  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)

  SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)

  SetVisibleAnimated (Duration As Int, Visible As Boolean)

  SubTitle As String

  SubTitleTextColor As Int [write only]

  Tag As Object

  THEME_DARK As Int

  THEME_LIGHT As Int

  Title As String

  TitleTextColor As Int [write only]

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

AddView (View As android.view.View, Width As Int, Height As Int, Gravity As Int)
Add a view to the ToolBar. The width is the available space between an
Icon/Logo on the left and the actions on the right.
Background As android.graphics.drawable.Drawable
BringToFront
Color As Int [write only]
DesignerCreateView (base As PanelWrapper, label As LabelWrapper, props As Map)
This method is only for the B4A Designer. Don't call it directly
Elevation As Float
Enabled As Boolean
GetAllViewsRecursive As IterableList
Gets all Views added to the Toolbar.
GetView (Index As Int) As ConcreteViewWrapper
Gets the view for the given Index
Height As Int
Gets or sets the view's height
Initialize (EventName As String)
Initializes the object.
InitMenuListener
Reinitializes the Menu listener. This is necessary if you set the ToolBar
as your activities ActionBar and you want to customize the menu at
runtime.
Invalidate
Invalidate2 (Rect As android.graphics.Rect)
Invalidate a rectangualar part of the object
Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
Invalidate part of the object
IsInitialized As Boolean
Left As Int
Gets or sets the view's left position
LogoBitmap As android.graphics.Bitmap [write only]
Sets a bitmap as a Logo. A logo in a toolbar is not clickable.
LogoDrawable As android.graphics.drawable.Drawable
Sets or gets the Logo for the Toolbar. The logo is not clickable and is
vertically centered in the toolbar.
Menu As ACMenu [read only]
Gets the menu of the ToolBar
MinHeight As Int
Sets or gets the minimum height of the ToolBar. The MinHeight property is
handled in a special way on ToolBars. The Overflow menu button and the
navigation item are vertically centered relative to the MinHeight. So if
you have a ToolBar with a height of 112dip and a minheight of 56dip the
Overflow menu and navigation item are placed in the upper half of the
ToolBar. If you don't set MinHeight the items are placed centered
relative to the whole ToolBar height.
NavigationIconBitmap As android.graphics.Bitmap [write only]
Sets the navigation item for the toolbar. This icon is clickable.
NavigationIconDrawable As android.graphics.drawable.Drawable
Sets or gets the navigation icon for the toolbar. This icon is clickable.
NumberOfViews As Int [read only]
Returns the number of Views in this ToolBar
Padding() As Int
Parent As Object [read only]
PopupTheme As Int [write only]
Sets the Popup theme.

MUST be run before Toolbar.SetAsActionBar !
RemoveAllViews
Remove all views from the ToolBar
RemoveView
RemoveViewAt (Index As Int)
Remove view with the given Index
RequestFocus As Boolean
SendToBack
SetAsActionBar
Set this Toolbar as the activity main ActionBar
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetColorAnimated (Duration As Int, FromColor As Int, ToColor As Int)
Animate the color to a new value
SetElevationAnimated (Duration As Int, Elevation As Float)
SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
Changes the View position and size.
SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)
Similar to SetLayout. Animates the change. Note that the animation will
only be applied when running on Android 3+ devices.

Duration - duration of the layout change
SetVisibleAnimated (Duration As Int, Visible As Boolean)
Fade the view in or out
SubTitle As String
Sets or gets the SubTitle of the Toolbar
SubTitleTextColor As Int [write only]
Sets the subtitle text color
Tag As Object
THEME_DARK As Int
THEME_LIGHT As Int
Title As String
Sets or gets the Title of the Toolbar
TitleTextColor As Int [write only]
Sets the title text color
Top As Int
Gets or sets the view's top position
Visible As Boolean
Width As Int
Gets or sets the view's width

AppCompat


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  GetElevation (View As android.view.View) As Float

  GetMaterialActionBarHeight As Int

  GetNavigationBarHeight As Int

  GetStatusBarHeight As Int

  GetStdActionBarHeight As Int

  GetThemeAttribute (AttributeName As String) As Int

  SetClickEffect (View As android.view.View, Borderless As Boolean)

  SetDrawableTint (drawable As android.graphics.drawable.Drawable, Color As Int)

  SetElevation (View As android.view.View, Elevation As Float)

  UnWrapDrawable (drawable As android.graphics.drawable.Drawable) As android.graphics.drawable.Drawable

Members description:

GetElevation (View As android.view.View) As Float
Gets the Elevation for the View
GetMaterialActionBarHeight As Int
Gets the ActionBar Height as definded in the Material Design style guide
GetNavigationBarHeight As Int
Gets the navigation bar height
GetStatusBarHeight As Int
Gets the status bar height
GetStdActionBarHeight As Int
Gets the standard ActionBar Height. Since Gingerbread does not have an ActionBar it will return 0 for Android < 3.0.
GetThemeAttribute (AttributeName As String) As Int
Tries to get the value of a Theme attribute, like colorPrimary,
colorPrimaryDark, colorPrimaryAccent. If the attribute is not found -1 is
returned.

AttributeName - Name of the attribute to find
SetClickEffect (View As android.view.View, Borderless As Boolean)
Sets a click-effect for a view. Will use ripple effect on Lollipop or later and
a normal click colorchange on earlier android versions.

View - View to set the effect for
Borderless - Should the effect be borderless?
SetDrawableTint (drawable As android.graphics.drawable.Drawable, Color As Int)
SetElevation (View As android.view.View, Elevation As Float)
Set the Elevation for the View
UnWrapDrawable (drawable As android.graphics.drawable.Drawable) As android.graphics.drawable.Drawable

Top