Sorry for my开发者_JS百科 bad English.....
i need refresh a TabHost (Tab2) from a ListAdapter include in this tab2....
I have a TabHost and in tab2 i have an ListAdapter and in this i have other listAdapter. i need refresh this tab2 from this second ListAdapter.
It is the plan:
[ Tab 1 ] [ Tab 2 ]
------------------------------------------
[05:00 am] - in first ListAdapter
------------------------------------
[ node 1 ] in second ListAdapter
[ node 2 ] in second ListAdapter
[06:00 am] - in first ListAdapter
------------------------------------
[ node 1 ] in second ListAdapter
[ node 2 ] in second ListAdapter
[ node 3 ] in second ListAdapter
[06:30 am] - in first ListAdapter
------------------------------------
[ node 1 ] in second ListAdapter
If I click in buttons on Second ListAdapter I show a custom dialog and in this a need refresh the Tab2. For make for example the node 2 in 06:00 am not show more.
How i can this be done?
I'm not sure I completely understand your question, but if you want to refresh the data in a ListView you can call adapter.notifyDataSetChanged()
after you have modified the contents of your list objects.
精彩评论