Skip to content

1.0.1

Compare
Choose a tag to compare
@skydoves skydoves released this 27 Sep 13:47

🎉 Released a new version 1.0.1! 🎉

What's New?

  • Changed internal repository/package names: Frescomposable -> landscapist-fresco.
  • And now library supports Glide for loading images.
dependencies {
    implementation "com.github.skydoves:landscapist-glide:1.0.1"
}

We can request and load images simply using a GlideImage composable function.

GlideImage(
  imageModel = imageUrl,
  // Crop, Fit, Inside, FillHeight, FillWidth, None
  contentScale = ContentScale.Crop,
  // shows a placeholder imageAsset when loading.
  placeHolder = imageResource(R.drawable.placeholder),
  // shows an error imageAsset when the request failed.
  error = imageResource(R.drawable.error)
)