I have a tabHost with 2 Tabs, Details and Attachments. What I want to do is, when I press the Attachments Tab, I want to hide Information that is in a RelativeLayout. I know I have to setVisibility(View.VISIBLE) but how can I associate this method with that Tab ?
I have this code to create my Tab:
intent = new Intent();
intent.putExtras(bundle);
spec = tabHost.newTabSpec("Attachments")
.setIndicator("Attachments")
.setContent(intent
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
tabHost.addTab(spec);
Can anyone help me please ?
Thanks.