Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created August 1, 2021 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/5f0603b19ff61fcbc4213c280af724bc to your computer and use it in GitHub Desktop.
Save skydoves/5f0603b19ff61fcbc4213c280af724bc to your computer and use it in GitHub Desktop.
GlideImage3
GlideImage(
imageModel = imageUrl,
// Crop, Fit, Inside, FillHeight, FillWidth, None
contentScale = ContentScale.Crop,
// shows an image with a circular revealed animation.
circularRevealedEnabled = true,
// shows a placeholder ImageBitmap when loading.
placeHolder = ImageBitmap.imageResource(R.drawable.placeholder),
// shows an error ImageBitmap when the request failed.
error = ImageBitmap.imageResource(R.drawable.error)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment