How to get the cards displayed inside CardView

I am wondering how to make the card appear inside CardView, as in the images below, highlighted in pink.

Left - Strava, she shows a map with a route. On the right is Google Calendar, it has a map of the location of the calendar event.

strava on the left, google calendar on the right

I would really suggest some kind of pointer to where to look in apis to achieve this.

Yours faithfully,
Bows

+5
source share
1 answer

For this you need to use MapView.

This is part of the Android Lite Mode .

Create your map and add a MapView inside CardView .

Then in your onCreate() you create the actual map and set MapView to display that map.

+3
source

Source: https://habr.com/ru/post/1242758/


All Articles