I Have this TabLayout in Android and wanted to make the tabs a little heigher than the default (48dp)
I use the following code for setting the height of TabLayout. Hope it helps you:
//Get tablayout
TabLayout tabLayout = (TabLayout) findViewById(R.id.tab_layout);
//Get the layout params that will allow you to resize the tablayout
ViewGroup.LayoutParams params = tabLayout.getLayoutParams();
//Change the height in 'Pixels'
params.height = 100;
tabLayout.setLayoutParams(params);