Press on the image to return to the main documentation page.
SLLVOnScroll
Written by Steve Laming
List of types:
SLLVOnScroll
SLLVOnScroll
Events:
None
Members:
Initialize
(
Lv
As
SimpleListView
,
EventName
As
String
,
Bg
As
android
.
graphics
.
drawable
.
Drawable
,
Fg
As
android
.
graphics
.
drawable
.
Drawable
)
Members description:
Initialize
(
Lv
As
SimpleListView
,
EventName
As
String
,
Bg
As
android
.
graphics
.
drawable
.
Drawable
,
Fg
As
android
.
graphics
.
drawable
.
Drawable
)
SLLVOnScroll Initialize
Shows the selected items in a scroll view.
Lv - listview to add to
EventName - as the library has to hijack the onItemclick Listener to get the position
in a timely manner, it then needs to call the standard onItemClick listener set up in the
designer or code, the name of which is not available, so this needs to be entered again here.
Enter the same eventName you did in the designer or code for the ListView
Bg - the background color for the highlight
Fg - the Foreground color for the highlight
Dim
CDPressed
,
CDNormal
As
ColorDrawable
CDPressed
.
Initialize
(
Colors
.
Blue
,
0
)
' Normal color
CDNormal
.
Initialize
(
Colors
.
Yellow
,
0
)
'Selected color
SV
.
Initialize
(
ListView1
,
"ListView1"
,
CDPressed
,
CDNormal
)
Top