Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 8th, 2020 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void changeTabsFont(Context context, TabLayout tabLayout, int color) {
  2.  
  3.     ViewGroup vg = (ViewGroup) tabLayout.getChildAt(0);
  4.     tabLayout.setBackgroundColor(color);
  5.     int tabsCount = vg.getChildCount();
  6.     for (int j = 0; j < tabsCount; j++) {
  7.         ViewGroup vgTab = (ViewGroup) vg.getChildAt(j);
  8.         int tabChildsCount = vgTab.getChildCount();
  9.         for (int i = 0; i < tabChildsCount; i++) {
  10.             View tabViewChild = vgTab.getChildAt(i);
  11.             if (tabViewChild instanceof TextView) {
  12.                 ((TextView) tabViewChild).setTypeface(Typeface.createFromAsset(context.getAssets(), "Lato-Regular.ttf"));
  13.             }
  14.         }
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top