Press on the image to return to the main documentation page.
ICOSGridView
Written by Giuseppe Salvi
List of types:
ICOSGridView
ICOSGridView
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
ItemClick (Position As Int, Value As Object)
ItemLongClick (Position As Int, Value As Object)
Members:
AddBitmap
(
Bitmap
As
android.graphics.
Bitmap
)
AddText
(Text1
As
CharSequence)
AddTextAndBitmap
(Text1
As
CharSequence,
Bitmap
As
android.graphics.
Bitmap
)
AddTwoText
(Text1
As
CharSequence, Text2
As
CharSequence)
AddTwoTextAndBitmap
(Text1
As
CharSequence, Text2
As
CharSequence,
Bitmap
As
android.graphics.
Bitmap
)
AUTO_FIT
As
Int
Background
As
android.graphics.drawable.Drawable
BringToFront
Clear
Color
As
Int
[write only]
ColumnWidth
As
Int
[write only]
Enabled
As
Boolean
FastScrollEnabled
As
Boolean
GetItem
(Index
As
Int
)
As
Object
Gravity
As
Int
[write only]
Height
As
Int
HSpacing
As
Int
[write only]
Initialize
(arg1
As
String
)
Invalidate
Invalidate2
(arg0
As
android.graphics.
Rect
)
Invalidate3
(arg0
As
Int
, arg1
As
Int
, arg2
As
Int
, arg3
As
Int
)
IsInitialized
As
Boolean
Left
As
Int
NO_STRETCH
As
Int
NumColumns
As
Int
[write only]
RemoveAt
(Index
As
Int
)
RemoveView
RequestFocus
As
Boolean
ScrollingBackgroundColor
As
Int
[write only]
Selection
As
Int
[write only]
SendToBack
SetBackgroundImage
(arg0
As
android.graphics.
Bitmap
)
SetLayout
(arg0
As
Int
, arg1
As
Int
, arg2
As
Int
, arg3
As
Int
)
STRETCH_COLUMN_WIDTH
As
Int
STRETCH_SPACING
As
Int
STRETCH_SPACING_UNIFORM
As
Int
StretchMode
As
Int
[write only]
Tag
As
Object
Top
As
Int
Visible
As
Boolean
VSpacing
As
Int
[write only]
Width
As
Int
Members description:
AddBitmap (
Bitmap
As
android.graphics.
Bitmap
)
Add only Bitmap
Example:
gridview.AddBitmap(LoadBitmap(File.DirAssets,"icon.png))
AddText (Text1
As
CharSequence)
Add single Text
Example:
gridview.AddText("Hello")
AddTextAndBitmap (Text1
As
CharSequence,
Bitmap
As
android.graphics.
Bitmap
)
Add Text and Bitmap
Example:
gridview.AddTextAndBitmap("Hello",LoadBitmap(File.DirAssets,"icon.png))
AddTwoText (Text1
As
CharSequence, Text2
As
CharSequence)
Add Two Text
Example:
gridview.AddTwoText("Hello","Basic4Android)
AddTwoTextAndBitmap (Text1
As
CharSequence, Text2
As
CharSequence,
Bitmap
As
android.graphics.
Bitmap
)
Add Two Text and Bitmap
Example:
gridview.AddTwoTextAndBitmap("Hello","Basic4Android",LoadBitmap(File.DirAssets,"icon.png))
AUTO_FIT
As
Int
Background
As
android.graphics.drawable.Drawable
BringToFront
Clear
Clear all item from the grid
Color
As
Int
[write only]
ColumnWidth
As
Int
[write only]
Set the width of columns in the grid.
Example:
gridview.ColumnWidth=30
Enabled
As
Boolean
FastScrollEnabled
As
Boolean
Gets or sets whether the fast scroll icon will appear when the user scrolls the grid
GetItem (Index
As
Int
)
As
Object
Return the value of the item at specified position
Gravity
As
Int
[write only]
Describes how the child views are horizontally aligned.
Height
As
Int
HSpacing
As
Int
[write only]
Set the amount of horizontal (x) spacing to place between each item in the grid
Example:
gridview.hSpacing=30
Initialize (arg1
As
String
)
Invalidate
Invalidate2 (arg0
As
android.graphics.
Rect
)
Invalidate3 (arg0
As
Int
, arg1
As
Int
, arg2
As
Int
, arg3
As
Int
)
IsInitialized
As
Boolean
Left
As
Int
NO_STRETCH
As
Int
NumColumns
As
Int
[write only]
Gets or sets the number of columns in the grid.
Default is set to 4
RemoveAt (Index
As
Int
)
Remove the item at specified position
RemoveView
RequestFocus
As
Boolean
ScrollingBackgroundColor
As
Int
[write only]
Sets the background color that will be used while scrolling the grid
Selection
As
Int
[write only]
Sets the currently selected item.
Example:
gridview.Selection=10
SendToBack
SetBackgroundImage (arg0
As
android.graphics.
Bitmap
)
SetLayout (arg0
As
Int
, arg1
As
Int
, arg2
As
Int
, arg3
As
Int
)
STRETCH_COLUMN_WIDTH
As
Int
STRETCH_SPACING
As
Int
STRETCH_SPACING_UNIFORM
As
Int
StretchMode
As
Int
[write only]
Control how items are stretched to fill their space.
Example:
gridview.StretchMode=gridview.STRETCH_SPACING_UNIFORM
Tag
As
Object
Top
As
Int
Visible
As
Boolean
VSpacing
As
Int
[write only]
Set the amount of vertical (y) spacing to place between each item in the grid
Example:
gridview.VSpacing=30
Width
As
Int
Top