mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 369 forks source link

Not working for spanned textview #26

Closed bhavesh-hirpara closed 9 years ago

bhavesh-hirpara commented 10 years ago

SpannableStringBuilder sb = new SpannableStringBuilder();

    for (int i = 0; i < mArrayList.size(); i++) {
        if (i == pos) {

            int start = sb.length();
            sb.append(mArrayList.get(i).content);
            sb.setSpan(new BackgroundColorSpan(0xFFCCFFCC), start,
                    sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);

        } else {
            sb.append(mArrayList.get(i).content);
        }
    }

my spanned text and it just display text..

mathew-kurian commented 10 years ago

Spannable is not currently supported. I have been busy lately but I should get to it.

mathew-kurian commented 10 years ago

Please refer to experimental version. More info on README.md.