Press on the image to return to the main documentation page.
xCustomListView
List of types:
CLVItem
CustomListView
ListItem
CLVItem
Events:
None
Members:
Color
As
Int
Initialize
IsInitialized
As
Boolean
Offset
As
Int
Panel
As
B4XViewWrapper
Size
As
Int
TextItem
As
Boolean
Value
As
Object
Members description:
Color
As
Int
Initialize
Initializes the fields to their default value.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
Offset
As
Int
Panel
As
B4XViewWrapper
Size
As
Int
TextItem
As
Boolean
Value
As
Object
CustomListView
Events:
ItemClick (Index As Int, Value As Object)
ItemLongClick (Index As Int, Value As Object)
ReachEnd
VisibleRangeChanged (FirstIndex As Int, LastIndex as Int)
ScrollChanged (Offset As Int)
Members:
Add
(
Pnl
As
B4XViewWrapper
,
Value
As
Object
)
As
String
AddTextItem
(
Text
As
Object
,
Value
As
Object
)
As
String
AnimationDuration
As
Int
AsView
As
B4XViewWrapper
Base_Resize
(
Width
As
Double
,
Height
As
Double
)
As
String
Class_Globals
As
String
Clear
As
String
DefaultTextBackgroundColor
As
Int
DefaultTextColor
As
Int
DesignerCreateView
(
Base
As
Object
,
Lbl
As
LabelWrapper
,
Props
As
Map
)
As
String
DesignerLabel
As
LabelWrapper
DividerSize
As
Float
[read
only]
FindIndexFromOffset
(
Offset
As
Int
)
As
Int
FirstVisibleIndex
As
Int
[read
only]
GetBase
As
B4XViewWrapper
getDividerSize
As
Float
getFirstVisibleIndex
As
Int
GetItemFromView
(
v
As
B4XViewWrapper
)
As
Int
getLastVisibleIndex
As
Int
GetPanel
(
Index
As
Int
)
As
B4XViewWrapper
GetRawListItem
(
Index
As
Int
)
As
CLVItem
getSize
As
Int
GetValue
(
Index
As
Int
)
As
Object
Initialize
(
vCallBack
As
Object
,
vEventName
As
String
)
As
String
InsertAt
(
Index
As
Int
,
pnl
As
B4XViewWrapper
,
Value
As
Object
)
As
String
InsertAtTextItem
(
Index
As
Int
,
Text
As
Object
,
Value
As
Object
)
As
String
IsInitialized
As
Boolean
JumpToItem
(
Index
As
Int
)
As
String
LastVisibleIndex
As
Int
[read
only]
PressedColor
As
Int
Refresh
As
String
RemoveAt
(
Index
As
Int
)
As
String
ReplaceAt
(
Index
As
Int
,
pnl
As
B4XViewWrapper
,
ItemHeight
As
Int
,
Value
As
Object
)
As
String
ResizeItem
(
Index
As
Int
,
ItemHeight
As
Int
)
As
String
ScrollToItem
(
Index
As
Int
)
As
String
Size
As
Int
[read
only]
sv
As
B4XViewWrapper
Members description:
Add
(
Pnl
As
B4XViewWrapper
,
Value
As
Object
)
As
String
Adds a custom item.
AddTextItem
(
Text
As
Object
,
Value
As
Object
)
As
String
Adds a text item. The item height will be adjusted based on the text.
AnimationDuration
As
Int
AsView
As
B4XViewWrapper
Base_Resize
(
Width
As
Double
,
Height
As
Double
)
As
String
Class_Globals
As
String
Clear
As
String
Clears all items.
DefaultTextBackgroundColor
As
Int
DefaultTextColor
As
Int
DesignerCreateView
(
Base
As
Object
,
Lbl
As
LabelWrapper
,
Props
As
Map
)
As
String
DesignerLabel
As
LabelWrapper
DividerSize
As
Float
[read
only]
FindIndexFromOffset
(
Offset
As
Int
)
As
Int
Finds the index of the item (+ divider) based on the offset
FirstVisibleIndex
As
Int
[read
only]
Gets the index of the first visible item.
GetBase
As
B4XViewWrapper
getDividerSize
As
Float
getFirstVisibleIndex
As
Int
Gets the index of the first visible item.
GetItemFromView
(
v
As
B4XViewWrapper
)
As
Int
Returns the index of the item that holds the given view.
getLastVisibleIndex
As
Int
Gets the index of the last visible item.
GetPanel
(
Index
As
Int
)
As
B4XViewWrapper
Returns the Panel stored at the specified index.
GetRawListItem
(
Index
As
Int
)
As
CLVItem
Returns the CLVItem. Should not be used in most cases.
getSize
As
Int
Returns the number of items.
GetValue
(
Index
As
Int
)
As
Object
Returns the value stored at the specified index.
Initialize
(
vCallBack
As
Object
,
vEventName
As
String
)
As
String
InsertAt
(
Index
As
Int
,
pnl
As
B4XViewWrapper
,
Value
As
Object
)
As
String
Adds a custom item at the specified index.
InsertAtTextItem
(
Index
As
Int
,
Text
As
Object
,
Value
As
Object
)
As
String
Inserts a text item at the specified index.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
JumpToItem
(
Index
As
Int
)
As
String
Scrolls the list to the specified item (without animating the scroll).
LastVisibleIndex
As
Int
[read
only]
Gets the index of the last visible item.
PressedColor
As
Int
Refresh
As
String
Causes the VisibleRangeChanged event to be raised
RemoveAt
(
Index
As
Int
)
As
String
Removes the item at the specified index.
ReplaceAt
(
Index
As
Int
,
pnl
As
B4XViewWrapper
,
ItemHeight
As
Int
,
Value
As
Object
)
As
String
Replaces the item at the specified index with a new item.
ResizeItem
(
Index
As
Int
,
ItemHeight
As
Int
)
As
String
Changes the height of an existing item.
ScrollToItem
(
Index
As
Int
)
As
String
Smoothly scrolls the list to the specified item.
Size
As
Int
[read
only]
Returns the number of items.
sv
As
B4XViewWrapper
ListItem
Events:
None
Members:
Checked
As
String
Initialize
IsInitialized
As
Boolean
Title
As
String
Members description:
Checked
As
String
Initialize
Initializes the fields to their default value.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
Title
As
String
Top