tomtom-navigation-android-examples icon indicating copy to clipboard operation
tomtom-navigation-android-examples copied to clipboard

Jetpack Compose usage

Open Fr3di opened this issue 1 year ago • 3 comments
trafficstars

Is it possible to use the map (map-display) with Jetpack Compose? I am struggling to display the map without using xml

Fr3di avatar May 08 '24 12:05 Fr3di

Yes @Fr3di, it's possible. I've written about it here

Czeach avatar May 11 '24 10:05 Czeach

Thx but it still requires to use xml file which ideally I would like to avoid after moving fully to Jetpack Compose. Unfortunatelly seems like that's the only way for now. Thx anyway @Czeach :)

Fr3di avatar May 11 '24 17:05 Fr3di

You can actually do it without creating the xml container, just replace the container id with R.id.content when creating the map fragment. It'll work but it's less ideal.

Czeach avatar May 11 '24 17:05 Czeach