Skip to content

Commit

Permalink
Use CustomTarget instead of SimpleTarget in the getting started page.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed May 1, 2019
1 parent 5f6b3cb commit 2150d7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _posts/2015-05-17-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,17 @@ In addition to loading ``Bitmap``s and ``Drawable``s into ``View``s, you can als
```java
Glide.with(context
.load(url)
.into(new SimpleTarget<Drawable>() {
.into(new CustomTarget<Drawable>() {
@Override
public void onResourceReady(Drawable resource, Transition<Drawable> transition) {
// Do something with the Drawable here.
}

@Override
public void onLoadCleared(@Nullable Drawable placeholder) {
// Remove the Drawable provided in onResourceReady from any Views and ensure
// no references to it remain.
}
});
```

Expand Down

0 comments on commit 2150d7f

Please sign in to comment.