ListView1 sample - help modify this please so item stays 'selected'

I am experimenting with the ListView1 sample project.

What I want is that when the user selects an item in the list view, I want that item to stay selected (highlighted).

In the function listButtonRelease I have removed the code that transitions to a new screen displaying the users selection.

But I cannot for the life of me get the item to stay highlighted until the user selects another item.

It would be fantastic if someone could help me out here.

Thanks [import]uid: 77494 topic_id: 12762 reply_id: 312762[/import]

Found it

in tableView.lua declare the following global variables

[lua]local lastDefault, lastOver [/lua]

In function newListItemHandler, way down at the bottom,
put:
[lua]lastDefault = default
lastOver = over [/lua]

instead of:
[lua]default.isVisible = true
over.isVisible = false
[/lua]

and then in function showHighlight add in
[lua]lastDefault.isVisible = true
lastOver.isVisible = false
[/lua]
before
[lua]currentDefault.isVisible = false
currentOver.isVisible = true [/lua] [import]uid: 77494 topic_id: 12762 reply_id: 46803[/import]