2017-07-14 86 views

回答

0

您必須使用HTML.fromHTML並執行Html.ImageGetter

對於實施例

Html.fromHtml(content, new Html.ImageGetter() { 
    @Override 
    public Drawable getDrawable(String source) { 
     byte[] data = Base64.decode(source, Base64.DEFAULT); 
     Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);     
     return new BitmapDrawable(getResources(), bitmap); 
    } 
    }, null);