Don't use ListView.
Use xCustomListView - it is more powerful, easier to work with and cross platform.
Use xCustomListView - it is more powerful, easier to work with and cross platform.
Last edited:
Sub LineList_ItemClick (Position As Int, Value As Object)
If RoomsListed = False AND RoomsDetailsListed = False Then ListRooms(Position, Value) 'this should list the rooms
If RoomsListed = True AND RoomsDetailsListed = False Then StartActivity(RoomDetail) 'if the rooms are listed then this should give the details from another activity that has the label in it - I know I'm not passing on any IDs here, that's a next step, just trying to go step by step
End Sub
Do you have some more code ?
So we could see what you have already done.
Where and how do you fill the ListViews.
Are the room and detail ListView contents always the same or should they dynamically change according to the selection of the previous ListViews ?
You need to give more detailed explanations.
The best way would be to post your project as a zip file (IDE menu Export As Zip).
Best regards.
Sub LineList_ItemClick (Position As Int, Value As Object)
If RoomsListed = False AND RoomsDetailsListed = False Then ListRooms(Position, Value)
If RoomsListed = True AND RoomsDetailsListed = False Then StartActivity(RoomsDetail)
End Sub
Sub LineList_ItemClick (Position As Int, Value As Object)
If RoomsListed = False AND RoomsDetailsListed = False Then
ListRooms(Position, Value)
Else If RoomsListed = True AND RoomsDetailsListed = False Then
StartActivity(RoomsDetail)
End If
End Sub
@nemethv:
...
ListView1.AddTwoLines2(Cursor.GetString("name"), Cursor.GetString("display_date"), Cursor.GetInt("_id"))