skydoves / landscapist

🌻 A pluggable, highly optimized Jetpack Compose and Kotlin Multiplatform image loading library that fetches and displays network images with Glide, Coil, and Fresco.

Home Page:https://skydoves.github.io/landscapist/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When we used from shape xml file for placeHolder app crashed.

parinexus opened this issue · comments

  • Library Version v1.3.6

Describe the Bug:
We have to show placeHolder for myImage in compose. when we use shape xml files application crash.

my file:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="@color/gray03"/> </shape>

Hey, would you provide more context for this? And I wonder why you don't use Shape with Modifier in Jetpack Compose.

Hey, would you provide more context for this? And I wonder why you don't use Shape with Modifier in Jetpack Compose.

my code is this:
GlideImage( modifier = Modifier.size(dimensionResource(id = R.dimen.profile_image_size)), imageModel = url ?: "", contentScale = ContentScale.Fit, circularReveal = CircularReveal(duration = 250), placeHolder = )
I need use that file in placeHolder.can you set it for me?I need set that file for error and placeHolder in glide.

@parinexus You're using a too old version. Please try to update landscapist to 2.1.6 and check out the placeholder plugin: https://github.com/skydoves/landscapist#placeholderplugin

For now, I will close this issue because there's nothing I can do from my side for version 1.x.