title: How to close one single tab in android tablayout without clearing all the tabs and adding again
body: <p>There is a method to add a tab in <code>TabHost</code> as well as clear all tabs, but there are no APIs to remove one single tab.</p>
  
  <p>Following the logic in <code>clearAllTabs</code> tried to </p>
  
  <pre><code>tabwidget.removeViewAt(index);
  tabHost.getTabContentView().removeViewAt(index)
  </code></pre>
  
  <p>After this the behaviour is strange. I assume that is because the <code>mTabSpecs</code> still contain the tabspec reference. <code>mTabSpecs</code> is a private variable in <code>TabHost</code> and there are not get methods to get a handle to this.</p>
  
  <p>How to resolve the issue if one wants to close a single tab, and yes I have tried to clear all the tabs and add back all the tabspecs. It does not work for my usecase where some views contains some information regarding a session. If I recreate those tabspecs, I will go back to the starting point in those views.</p>