glide-support
glide-support copied to clipboard
Invalidate doesn't work, even in the UI thread.
I got this work by changing targetView.invalidate(), but somehow the images overlapped letters in Textview. Not sure why it happened.
It seems to be a strange behavior of Html.ImageGetter, will try.
After attempting for a while, setText(getText()) will mess up the layout. Invalidate() does not work.
Found a way. Instead of invalidate Textview with setText, do setTextSize. It is less verbose and work better. My attempt is
textView.setTextSize(n + 1);
textView.setTextSize(initialSize);
That way you will force the textView to invalidate with new textsize, and then set textsize back to normal.
Generally, you have to change a property of textview in order to call invalidate. Hope to help someone.
Sorry, didn't mean to close this, I just renamed the base branch.
It's still on my todo list to investigate: https://github.com/TWiStErRob/glide-support/issues/48