I found (on SO) a solution for how to remove all tabs. And how to remove one, knowing its index? It would seem obvious, but I can not. Could you explain this in Russian?

    2 answers 2

    TabHost Remove Tab problem

    • This is all because of this line: myTabHost.setCurrentTab (0); // IMPORTANT I missed it! - angry

    I usually change the setVisibility property:

    TabHost tabHost = (TabHost) getParent().findViewById(android.R.id.tabhost); tabHost.getTabWidget().getChildTabViewAt(3).setVisibility(View.GONE);