I im generating listview items with json:
So i have in listview this order of 6 items visible on the screen...and this works very good..now i need to make when user using remote control press down button and last item is activated to scroll down and when last item is selected in listview to get at the beggining of array and show first item and so on...best is the example:
I have generated using above code listview items:
Item1
Item2
Item3
Item4
Item5
Item6
And i have 9 items added using above code so when i get to last item:
Item4
Item5
Item6
Item7
Item8
Item9
I need to get this from beggining:
Item5
Item6
Item7
Item8
Item9
Item1
Then:
Item6
Item7
Item8
Item9
Item1
Item2
And so on..so how can i make this in B4A? So when last item in listview is selected go from first item so when i scroll down or up i get all items in listview (so i don't need to scrool up if i im at last item in listview)...How do i need to write so nice feauture?
B4X:
For Each Genre As List In Main.VideoClubItems
'ADD - VideoClub Genre
lvVideoClub.AddSingleLine2(" "&Genre.Get(1), Genre.Get(0))
Next
So i have in listview this order of 6 items visible on the screen...and this works very good..now i need to make when user using remote control press down button and last item is activated to scroll down and when last item is selected in listview to get at the beggining of array and show first item and so on...best is the example:
I have generated using above code listview items:
Item1
Item2
Item3
Item4
Item5
Item6
And i have 9 items added using above code so when i get to last item:
Item4
Item5
Item6
Item7
Item8
Item9
I need to get this from beggining:
Item5
Item6
Item7
Item8
Item9
Item1
Then:
Item6
Item7
Item8
Item9
Item1
Item2
And so on..so how can i make this in B4A? So when last item in listview is selected go from first item so when i scroll down or up i get all items in listview (so i don't need to scrool up if i im at last item in listview)...How do i need to write so nice feauture?