Font can be added to TabLayout only from code and only after Tabs have been added to TabLayout.
<com.ivankocijan.magicviews.views.MagicTabLayout android:id="@+id/tab_layout" android:layout_width="match_parent" android:layout_height="100dp"/>
MagicTabLayout tabLayout = (MagicTabLayout) findViewById(R.id.tab_layout); tabLayout.addTab(tabLayout.newTab().setText("Tab 1")); tabLayout.addTab(tabLayout.newTab().setText("Tab 2")); tabLayout.setFont("yourfont.ttf");
There was an error while loading. Please reload this page.