Hi,
I am trying to put a listview within a scrollview. I have a for loop that iterates through my json data, this is working fine.
The problem is that if I initialize the listview outside of the for-loop I get an error about the child view already existing and I need to use removeview.
If I initialize the listview within the for-loop, the error message disappears, the listview looks fine and responds to item_click, however the value returned is always the last item added to the listview.
Please could someone point me in the right direction, before I pull what hair I have left out :sign0104:
The reason I am using a scrollview is I am using a webview as well to show a web image, without downloading it first
Neil
I am trying to put a listview within a scrollview. I have a for loop that iterates through my json data, this is working fine.
The problem is that if I initialize the listview outside of the for-loop I get an error about the child view already existing and I need to use removeview.
If I initialize the listview within the for-loop, the error message disappears, the listview looks fine and responds to item_click, however the value returned is always the last item added to the listview.
Please could someone point me in the right direction, before I pull what hair I have left out :sign0104:
The reason I am using a scrollview is I am using a webview as well to show a web image, without downloading it first
Neil