Created
May 29, 2023 07:53
-
-
Save amodkanthe/a73d2375206a79a6fdf3f3b066b89122 to your computer and use it in GitHub Desktop.
Ad Click.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Box( | |
Modifier | |
.padding(16.dp) | |
.clickable { | |
showInterstialAd() | |
}) { | |
Card { | |
Image( | |
painter = rememberAsyncImagePainter(item.image), | |
contentDescription = null, | |
contentScale = ContentScale.Crop, | |
modifier = Modifier | |
.fillMaxWidth() | |
.aspectRatio(1.8f) | |
) | |
item.text?.let { | |
Text( | |
text = it, | |
modifier = Modifier | |
.fillMaxWidth() | |
.background(Color.Black.copy(0.4f)) | |
.padding(8.dp, 4.dp, 8.dp, 4.dp), | |
fontSize = 18.sp, | |
color = Color.White, | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment