Glide Load File or Url as String

June 19, 2018

Glide.load(string) support either a file path (start with /) or url.

val file = "https://www.travelopy.com/static/img/cover.jpg"
// or
// val file = "/path/image.jpg"

Glide.with(this)
    .load(file)
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.