MaterialTabHost
MaterialTabHost copied to clipboard
How do you change the font size on a tab?
I tried the following code but findViewById(android.R.id.title) returns null. Is there a convenient way to adjust the font size of all tabs?
MaterialTabHost tabHost = (MaterialTabHost) findViewById(android.R.id.tabhost);
for (int i = 0; i < tabHost.getTabWidget().getChildCount(); i++) { TextView tv = (TextView) tabHost.getTabWidget().getChildAt(i).findViewById(android.R.id.title); tv.setTextSize(23); }