I am doing a file transfer application where you can transfer with 1 file to another. I am using a TabHost creating 2 tabs and in these 2 tabs 1 listview is the untouchable and the other is onclick will add an item to listview1.
My question is how does the other listview refresh itself when another tab is selected?. Does it just instantly transfer activity with no change at all or does it updates then shows?.
You have an ArrayAdapter for the first list that doesn’t get touched.
Just do this with it’s array adapter everytime you add/delete in your other list.
First get access to the array adapter of the untouchable list (here within a list fragment), then notify (or clear) it so it will update to the new data – having updated the array adapter’s base data which shows the selected items, so that it actually has new content before it gets updated.