I am practicing on this project called GetTours i got from github, now
I want to display random Item from the ListView
without seeing the ListView
. not only show random item from ListView
, but also print the details of the items, the item contains Name, address and lat long value for the map marker.
is that even possible?
or maybe, Teach me how to create a list that contains a name, address and lat long value and how to display it. I am also planning of randomizing it every time i shake the device. I had an app that do shake an random with a single data array, now I want to randomize a place with Name, address and a Map marker in the said location per shake. please help!
A ListView is not needed here, save your items in a List :
Then select a random number with the maximum as the length of your list :
And then, do what you need to do with the data :