Releases: skydoves/landscapist
Releases · skydoves/landscapist
1.0.2
1.0.1
🎉 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)
)