Карта Google берет верх при нажатии, даже если она находится внутри карты.Android

Форум для тех, кто программирует под Android
Гость
Карта Google берет верх при нажатии, даже если она находится внутри карты.

Сообщение Гость »


This is my code.

Код: Выделить всё

    Card(         modifier = modifier,         shape = CutCornerShape(0),         elevation = CardDefaults.cardElevation(10.dp),         onClick = { onCardClick.invoke() }     ) {         Box(             modifier = modifier                 .height(IntrinsicSize.Max)                 .width(IntrinsicSize.Max)         ) {             GoogleMap(                 Modifier.fillMaxSize(),                 cameraPositionState = positionState             ) {             //...             }             //...         }     } 
I want to have interaction Source in the Card but no matter what I've tried google map always takes over. I've tried changing the interaction source inside googleMap modifier and there is no disable for on click events either.

If I changed googleMap with Column the interaction worked without any issues.


Источник: https://stackoverflow.com/questions/766 ... e-the-card

Вернуться в «Android»