I tested it before posting and it worked for me just fine: Here is the complete project. Just paste it in a new project and test for yourself:
B4X:
Sub Globals
Private lv As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
lv.Initialize("lv")
Activity.AddView(lv,0,0,50%x,35%y)
lv.AddSingleLine("Erel")
lv.AddSingleLine("klaus")
lv.AddSingleLine("DonManfred")
End Sub
Sub Activity_Click
If lv.Visible=True Then
lv.Visible=False
Else
lv.Visible=True
End If
End Sub