Html.ImageGetter

前端 未结 4 1251
暖寄归人
暖寄归人 2020-11-29 03:32

Can any one help me out how to use Html.ImageGetter to dispaly images using html image src tag ? and example or good tutorial

4条回答
  •  臣服心动
    2020-11-29 04:08

    The answer from kape123 certainly helped me. I was so nearly there.

    The bit that's easy to miss is the call to setBounds on the Drawable. The Html.ImageGetter help documentation also provides a clue when it says:

    Make sure you call setBounds() on your Drawable if it doesn't already have its bounds set.

提交回复
热议问题