Load png image from resources works wrong on jetpack compose

Viewed 567

I'm doing a simple activity with an image inside. I have my image on the drawable folder. It's a png. But when I show the preview o run the app on my emulator it shows like this:

enter image description here

This is the code:

@Composable
fun SplashBody() {
Column(
    modifier = Modifier
        .fillMaxSize()
        .background(color = Color(0xFFF85B1A)),
    horizontalAlignment = Alignment.CenterHorizontally,
    verticalArrangement = Arrangement.Center,
) {
    Image(painter = painterResource(id = R.drawable.dbz_logo_2), contentDescription = "")
}}
0 Answers
Related