Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Here we add the custom TextView for each tab.
- for (int i = 0; i < mSectionsPagerAdapter.getCount(); i++) {
- final TextView t = new TextView(this);
- t.setText(mSectionsPagerAdapter.getPageTitle(i));
- t.setTypeface(FONT_AWESOME);
- t.setTextColor(lightBlue);
- t.setTextSize(25);
- t.setPadding(0, 10, 0, 0);
- actionBar.addTab(actionBar.newTab().setCustomView(t).setTabListener(this));
- }
- // This goes into the FragmentPagerAdapter
- @Override
- public CharSequence getPageTitle(int position) {
- switch (position) {
- case 0:
- return activity.getResources().getString(R.string.icon_user);
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement