android-iconify icon indicating copy to clipboard operation
android-iconify copied to clipboard

Not working on TabLayout

Open neutt22 opened this issue 7 years ago • 0 comments

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.

neutt22 avatar Mar 22 '17 02:03 neutt22