Most visited

Recently visited

Added in API level 1

Html.ImageGetter

public static interface Html.ImageGetter

android.text.Html.ImageGetter


检索HTML <img>标签的图像。

摘要(Summary)

公共方法(Public methods)

abstract Drawable getDrawable(String source)

当HTML解析器遇到<img>标记时,将调用此方法。

公共方法(Public methods)

getDrawable

Added in API level 1
Drawable getDrawable (String source)

当HTML解析器遇到<img>标记时,将调用此方法。 source参数是来自“src”属性的字符串; 返回值应该是图像的可绘制表示或null用于通用替换图像。 如果尚未设置边界,请确保在Drawable上调用setBounds()。

参数(Parameters)
source String
返回(Returns)
Drawable

Hooray!