Open jchri853 opened 9 years ago
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); }
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); }