Created
June 5, 2021 15:31
-
-
Save hkawii/b6b4dae28d27e18184a9c94063a6804f to your computer and use it in GitHub Desktop.
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
@Composable | |
fun MapPinOverlay(){ | |
Column(modifier = Modifier.fillMaxWidth()) { | |
Box( | |
modifier = Modifier | |
.weight(1f) | |
.fillMaxWidth(), | |
contentAlignment = Alignment.BottomCenter | |
){ | |
Image( | |
modifier = Modifier.size(50.dp), | |
bitmap = ImageBitmap.imageResource(id = R.drawable.pin).asAndroidBitmap().asImageBitmap(), | |
contentDescription = "Pin Image" | |
) | |
} | |
Box( | |
Modifier.weight(1f) | |
){} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment