THIS IS NOT AN ANSWER, BUT COULD NOT GET ALL THIS INTO COMMENT
I have a TabWidget containing 3 tabs.
These are added using an intent as shown below
intent = new Intent().setClass(this, DuaList.class);
spec = tabHost.newTabSpec("list").setIndicator("List",
res.getDrawable(R.drawable.tab_sel))
.setContent(intent);
tabHost.addTab(spec);
One of the tabs contains an expandable list. When the user clicks on a child, the following gets called:
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
Intent i = new Intent();
i.setClassName("com.ts", "com.ts.ShowData");
startActivity(i);
return true;
}
ShowData is an activity that contains a WebView. The above results in the WebView being shown that fills the screen.
What I would like to do is for the WebView to replace the expandable list view in the tab. Clicking on the actual tab should show the expandable list view again.