Is there a way to implement rounded corners to a Mapfragment?

后端 未结 7 744
忘了有多久
忘了有多久 2020-11-30 09:10

I want to give the map a nice looking rounded corners as the two boxes below it have. I can\'t do it with the map fragment it self because there is not a background property

7条回答
  •  天涯浪人
    2020-11-30 09:56

    Following @Nouman_Hanif post I ended up with a solution that looks quite good.

    map_rounded_corner_overlay.xml:

    
    
      
      
    
    

    My map xml file:

    
    
      
      
    
    

提交回复
热议问题