I'm working with AppCompat and I use the ActionBar.Tab
to set Tab's and now I need to get Tab
Height ?
Any help will be appreciated.
I'm working with AppCompat and I use the ActionBar.Tab
to set Tab's and now I need to get Tab
Height ?
Any help will be appreciated.
You can use either
getToolbar().getHeight();
or if you're using the AppCompatActivity
getSupportActionBar().getHeight();
Assuming you've set the toolbar.
Cheers
try with :
TabHost myTabHost= getTabHost();
int tabHeight = myTabHost.getTabWidget().getHeight();