Skip to content

Instantly share code, notes, and snippets.

@hkawii
Created June 5, 2021 15:31
Show Gist options
  • Save hkawii/b6b4dae28d27e18184a9c94063a6804f to your computer and use it in GitHub Desktop.
Save hkawii/b6b4dae28d27e18184a9c94063a6804f to your computer and use it in GitHub Desktop.
@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