Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
serifgungor authored Jul 27, 2019
1 parent adeef79 commit d4aac27
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ or Maven

# How to use ?

## FROM URL
- If you want to display an image in the ImageView object on the website, you can use the following method. It downloads the image from the website and caches it from being downloaded continuously.
## FROM URI
```groovy
new Photto.PhottoBuilder(
this,
"https://images.unsplash.com/photo-1555992643-a97955e6aae6?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=401&q=80",
getApplicationContext(),
Uri.parse("android.resource://"+getPackageName()+"/drawable/ic_launcher_background"),
(ImageView) findViewById(R.id.imageView)
).build();
```
Expand Down

0 comments on commit d4aac27

Please sign in to comment.