hidroh/richtext

How to load assets folder image in rich TextView

lovebdsobuj opened this issue · 1 comments

How to load assets or res/drawable folder image in rich TextView?

You can either set the drawable as drawableTop, drawableBottom, drawableLeft or drawableRight if that is sufficient. Otherwise you can embed it in <img> HTML tag, in which src points to a custom URI that you can parse and extract the drawable in your own ImageGetter while you parse HTML.