I'm wondering how to get the map to appear inside the CardView, like in the images below, highlighted in pink.
On the left is Strava, it shows the map with the route highilghted. On the right is Google Calendar, it has a map of the location of the calender event.
I would really appriciate some pointer on where to look in the apis to achieve this.
Regards,
Luke
You need to use a MapView to achieve this.
This is part of Androids Lite Mode.
Create your card, and add the MapView
inside the CardView
.
Then in your onCreate()
, you create the actual map and set the MapView
to display that map.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With