I have a image with sharp edges. 
the tile_mode.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/background"
android:tileMode="repeat">
</bitmap>
the back.xml
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/tile_mode" />
<item>
<shape>
<solid/>
<stroke android:width="1dip" android:color="#225786" />
<corners android:radius="10dip"/>
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>
</item>
layout.xml
<LinearLayout
android:id="@+id/frame1"
android:background="@drawable/back"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</LinearLayout>
I am setting the image as a background to this layout and drawing a border to it but the problem is the image is square with sharp edges and the border which I am drawing in the xml is rounded corners. So how to make the image also with rounded corners?
This is one of solution in which you have to
make round to your main layout backgroundand inside keep yourimageview with your desire image:something like below:
back.xml
This will make your image to round corner
tile_mode.xml
layout.xml
Updated
After digging lots, I came across on of solution which already posted on
stackoverflowChanging Image as Rounded Corner
How to make an ImageView to have rounded corners
step1@
main.xml
Step2@
Make one function which make rounded to your bitmap using canvas.
step3@