I'm trying to set up a text size from code, since this option does not exist does anyone have an idea how to achieve this?
I know it's possible through style, but I can't use style.
Also I tried this example, but it doesn't work.
I have partially (some Tabs get new text size) succes with this:
try {
Field tabTextSize = TabLayout.class.getDeclaredField("mTabTextSize");
tabTextSize.setAccessible(true);
tabTextSize.setFloat(mTabLayout, 64f);
} catch (Exception e) {
e.printStackTrace();
}