1

i have a very simple image

Image(
      imageVector = vectorResource(Res.drawable.swords),
      contentDescription = null,
      modifier = Modifier.width(82.dp)
          .clip(shape = RoundedCornerShape(16.dp))
          .background(Color.DarkGray)
 )

but it is not showing as you can see on image below

enter image description here

resources are as vector XML where they are supposed to

enter image description here

my question is what am i missing?

3
  • Try adding a height as well, does that help? Commented Jul 24 at 13:46
  • It may be behind another object. Commented Jul 24 at 16:54
  • Seems like this should work fine. Could you try it with other vector images to confirm? Commented Jul 26 at 9:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.