Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. // Here we add the custom TextView for each tab.
  2. for (int i = 0; i < mSectionsPagerAdapter.getCount(); i++) {
  3.     final TextView t = new TextView(this);
  4.     t.setText(mSectionsPagerAdapter.getPageTitle(i));
  5.     t.setTypeface(FONT_AWESOME);
  6.     t.setTextColor(lightBlue);
  7.     t.setTextSize(25);
  8.     t.setPadding(0, 10, 0, 0);
  9.     actionBar.addTab(actionBar.newTab().setCustomView(t).setTabListener(this));
  10. }
  11.  
  12. // This goes into the FragmentPagerAdapter
  13. @Override
  14. public CharSequence getPageTitle(int position) {
  15.     switch (position) {
  16.         case 0:
  17.             return activity.getResources().getString(R.string.icon_user);
  18.         ...