开发者

Refresh a TAB of a Tabhost listadapter from within a list of another adapter

开发者 https://www.devze.com 2023-03-23 15:24 出处:网络
Sorry for my开发者_JS百科 bad English..... i need refresh a TabHost (Tab2) from a ListAdapter include in this tab2....

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消