Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:41:32+00:00 2026-06-17T20:41:32+00:00

I want to give the map a nice looking rounded corners as the two

  • 0

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 to a
fragment.
setting the map inside a layout and setting it background to a rounded shape didn’t help me
as well and this is the result:

https://i.stack.imgur.com/LJhP1.jpg

I could merge the map but this would make it smaller and i would like to avoid it.

EDIT:
@Ryan this is the new result #2:

https://i.stack.imgur.com/69D59.jpg

I guess this is not bad, no even close to the corners on the other boxes,
but still not bad with a little more work a could get somewhere close i just dont have a normal image editor.
but one thing that still bothers me now is the separation between the “Location” Textview and the map it’s self. could i painted the patch in other way so that there was now distance? this is how i did it:

https://i.stack.imgur.com/1Qx66.png

Well I have finally figured this out:

https://i.stack.imgur.com/bY4N5.jpg

this is what i used for the patch:

enter image description here

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:41:33+00:00Added an answer on June 17, 2026 at 8:41 pm

    I haven’t tried this, but I’d put a view with rounded corners and a transparent middle on top of the mapView / mapFragment.

    That is, put the mapFragment and the rounded corner view in a FrameLayout with both filling the FrameLayout, then make the middle of the rounded corner view transparent.

    For further clarification, you could do it in a layout as follows:-

    <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
    
    <fragment
        xmlns:map="http://schemas.android.com/apk/res-auto"
        android:id="@+id/mapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        class="com.google.android.gms.maps.MapFragment" />
    
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/rounded_background"
        android:orientation="vertical" >
    </LinearLayout>
    
    </FrameLayout>
    

    The rounded_background is a 9-patch with rounded corners and a transparent middle. E.g.

    rounded_background.9.png

    Hope that helps,

    Ryan

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing map based application in iPhone sdk. I want to give functionality
I want to give a blur effect to my DrawingVisual . I can do
I want to write a class Map with two functions: save and load. I'd
I want a library that I can give it a file and a config
I want to figure out how Google Map's API to give us directions. Create
I made a game, and I want it to give the map data that
i have a list of tags in questions.. now i want to give each
i want to know if i can see place on map-MKMapView- by entering the
I have a map which contains integer values. i want to re-arange this map
I have a small map on my view that I want to drop an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.