Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 18005

How to show the text and the icon on the image. jetpack compose

$
0
0
        Box(            modifier = Modifier                .fillMaxWidth()                .fillMaxHeight(0.35f),        ) {            IconButton(onClick = {}) {                Icon(                    modifier = Modifier.size(50.dp).background(Color.White),                    imageVector = Icons.Default.ArrowBack, contentDescription = null)            }                Text("Hello", style = TextStyle(Color.White, fontSize = 10.sp))            Image(                modifier = Modifier.background(Color.white)                painter = rememberAsyncImagePainter(null),                contentDescription = null,                contentScale = ContentScale.Crop,                        modifier = Modifier // Adjust the size of the image as needed                        .fillMaxSize()            )        }

I am expecting to see text on the image and also the icon. if those two can be visible they are currently not visible


Viewing all articles
Browse latest Browse all 18005


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>