In my application, I want to set bubbles to a text view, in the text view I add the setBackgroundResource() as you can see in the code.

With this code i'm getting an image like this:

enter image description here

I want a bubble shape image like this:

enter image description here

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
    <solid android:color="#EDF5E4" />
    <corners android:bottomLeftRadius="@dimen/corner_radius"
    android:bottomRightRadius="@dimen/corner_radius"
    android:topLeftRadius="@dimen/corner_radius"
    id:topRightRadius="@dimen/corner_radius" />

Please tell me how to make this in my setBackgroundResource() XML.

Edit
Report