title: How to get Tabs Height of Fragment Tab Host in Android
body: <p>Hello I am trying to get the height of Tab of Fragment Tab Host dynamically in android, but it didn't work for me .</p>
  
  <pre><code>mTabHost = (FragmentTabHost) findViewById(R.id.tabhost);
  mTabHost.setup(this, getSupportFragmentManager(), R.id.container);
  
  mTabHost.addTab(
          mTabHost.newTabSpec("tab1").setIndicator("Tab 1",
                  getResources().getDrawable(android.R.drawable.star_on)),
          FragmentTab.class, null);
  
  
  LinearLayout.LayoutParams params = (LinearLayout.LayoutParams)findViewById(R.id.container).getLayoutParams();
  params.setMargins(0, mTabHost.getHeight(), 0, 0);
  </code></pre>
  
  <p>Any idea to get height of tabs of FragmentTabHost ?</p>