Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# Html.ImageGetter

*** ** * ** ***


`
public
static


interface
Html.ImageGetter
`


`


`

|---|
| android.text.Html.ImageGetter |

<br />

*** ** * ** ***

Retrieves images for HTML \<img\> tags.

## Summary

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/text/Html.ImageGetter#getDrawable(java.lang.String)(https://developer.android.com/reference/java/lang/String source) ` This method is called when the HTML parser encounters an \<img\> tag. |

## Public methods

### getDrawable

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Drawable getDrawable (String source)
```

This method is called when the HTML parser encounters an
\<img\> tag. The `source` argument is the
string from the "src" attribute; the return value should be
a Drawable representation of the image or `null`
for a generic replacement image. Make sure you call
setBounds() on your Drawable if it doesn't already have
its bounds set.

<br />

| Parameters ||
|---|---|
| `source` | `String` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | <br /> |