Open neutt22 opened 7 years ago
Here's my current code:
` @Override public CharSequence getPageTitle(int position) { Drawable drawable = new IconDrawable(context, FontAwesomeIcons.fa_android);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); SpannableString spannableString = new SpannableString(" " + TAB_TITLES[position]); ImageSpan imageSpan = new ImageSpan(drawable, ImageSpan.ALIGN_BOTTOM); spannableString.setSpan(imageSpan, 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); return spannableString;
}`
Only text are being shown. I'm using support TabLayout.
Here's my current code:
` @Override public CharSequence getPageTitle(int position) { Drawable drawable = new IconDrawable(context, FontAwesomeIcons.fa_android);
}`
Only text are being shown. I'm using support TabLayout.