Kshitij Patil
12/03/2020, 4:34 PMfillMaxWidh()
? Seems like preferredSize()
is a compulsory step to do.cb
12/03/2020, 4:40 PMKshitij Patil
12/04/2020, 6:38 AMGlideImage(
data = imagePath, // imageUri not working?
fadeIn = true,
modifier = Modifier
.preferredSize(192.dp)
.fillMaxWidth()
.constrainAs(image) {
top.linkTo(dateTime.bottom, margin = 8.dp)
start.linkTo(parent.start, margin = 8.dp)
}
)
If I remove preferredSize
, image isn't shown at all. I want images to have fixed height and stretched across width. Also, imageUri
is not working whereas imageUri.path
works, is that an issue with Glide itself?cb
12/04/2020, 8:46 AMimagePath
? If it's not a type which Glide understands then you need to convert it to something which it does.Kshitij Patil
12/04/2020, 9:09 AMimagePath
is imageUri.path
, so my issue is Glide works with image path but AFAIK Glide supports bothcb
12/07/2020, 9:45 AM