Show Image in TextView

前端 未结 3 1576
花落未央
花落未央 2021-02-09 20:14

I wish to show Images in TextView. My Images are saved in res/raw directory. I tried using HTML.ImageGetter but could not find a complete reference for same.

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-09 20:15

    u can use this: setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom)

    follow this example u can do the same for textview

提交回复
热议问题