How To Remove Tabwidget oF A TabHost Temporarily?

StartActivity() works inside ActivityGroup also . So activity will start in complete screen and finish() will send back to ActivityGroup().

StartActivity() works inside ActivityGroup also . So activity will start in complete screen and finish(); will send back to ActivityGroup() .

Thanks a lot , got some idea of how can I do what I wanted to do .....! – Junaid Nov 22 at 12:08.

Since TabWiget is a subclass of View you should be able to hide/reshow it using setVisibility(). You would need a reference to your TabWidget - where this reference needs to be, depends on what class will handle hide/show. In my example below I will assume you put the functionality in your TabActivity - so there we add two methods and a reference to the TabWidget: TabWidget myTabWidget; //You will need to find it in the layout in onCreate using findViewById( R.id.

IdOfYourTabWidget ). Public void hideTabs() { myTabWidget. SetVisibility( View.

GONE ); } public void showTabs() { myTabWidget. SetVisibility( View. VISIBLE ); } Then in the Activity that needs to hide the tabs you will need to do something like: Activity activity = getParent(); //Might be getParent().getParent(); if you're inside an ActivityGroup.

If( activity instanceof MyTabActivity ) //Just to make sure. ((MyTabActivity) activity).hideTabs(); And to reshow the tabs, the same thing but calling ((MyTabActivity) activity).showTabs(); instead.

Well , I have done something like that before asking this question. But the problem is, though the Tabwidget become invisible, the space of the Tabwidget remains blank, The FrameLayout doesn't cover the whole screen. What I want, when the Tabwidget will be removed temporarily, The FrameLayout will be shown through entire screen.

– Junaid Nov 22 at 9:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions