ufo22940268 / android-justifiedtextview

android justified textview
951 stars 243 forks source link

HightLighting Any specific Text Programatically is not Supporting. #37

Open Ramkesh9 opened 2 years ago

Ramkesh9 commented 2 years ago

SpannableString spannableString = new SpannableString(textView.getText().toString()); spannableString.setSpan(CharacterStyle.wrap(new BackgroundColorSpan(Color.YELLOW)), i, i + searchedText.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); textView.setText(spannableString);

This is the code Which i've used to highlight yellow to any textview, But this Library doesn't support Highlighting any Color over Specific TextView. Any Help Would be Appreciated.