Hello,
I'm trying to work with a number of lists.
These are a bit tree-like lists, so for example in the first one the user selects a house (from a list), in the second one it details the rooms of the house (from a list) which then could be clicked again and a label/activity would come up describing the details of the room.
In the Sub Activity_Create(FirstTime As Boolean) I do the code for the house's list, and then call on another sub to list the rooms when LineList_ItemClick is triggered
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(RoomDetail)
End Sub
RoomsListed is set to True once the Rooms' list executes.
My problem is that the Sub LineList_ItemClick (Position As Int, Value As Object) is triggered (ie user clicks from the house to list the rooms) it seems to be constantly "true", thus although the rooms do get listed, it then automatically moves on to the 'details' part, whereas i'd want the details part only to come up when the user clicks on a room so that i can load in that room's details....
What am I missing? Should I be using multiple LineLists? How do I do that? Or something else?
Ta