title: how to add shadow effect on drawable in android
body: <p><img src="https://i.stack.imgur.com/Q5kEx.png" alt="enter image description here">I have created chat bubble with drawable which looks fine, now I want to add shadow effect below the drawable so it make 3d effect.I don't want to use 9-pitch image. I just want to know how i can add shadow effect on this drawable. my code is </p>
  
  <p>----right_bubble_chat_drawable</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
          &lt;corners android:radius="15dp" /&gt;
  
          &lt;solid android:color="@color/chatrightbubbleColor" /&gt;
  
          &lt;padding
              android:bottom="10dp"
              android:left="10dp"
              android:right="10dp"
              android:top="10dp" /&gt;
  
          &lt;size
              android:height="@dimen/normal_button_height"
              android:width="@dimen/normal_button_width" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>--- for corner pointer   'chat_laftarraow'</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;item &gt;
       &lt;rotate
          android:fromDegrees="90"
          android:toDegrees="-90"
          android:pivotX="50%"
          android:pivotY="50%" &gt;
      &lt;rotate
          android:fromDegrees="45"
          android:toDegrees="45"
          android:pivotX="-40%"
          android:pivotY="86%" &gt;
          &lt;shape
              android:shape="rectangle"  &gt;
              &lt;stroke android:color="#00aaef" android:width="1dp"/&gt;
              &lt;solid
                  android:color="#00aaef"  /&gt;
  
          &lt;/shape&gt;
         &lt;/rotate&gt;
         &lt;/rotate&gt;
        &lt;/item&gt;
      &lt;/layer-list&gt;
  </code></pre>
  
  <p>------- I am using them like </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content" &gt;
     &lt;View
      android:id="@+id/left_chatArror"
      android:layout_width="20dp"
      android:layout_height="20dp"
      android:layout_alignParentRight="true"
      android:layout_marginTop="6dp"
      android:background="@drawable/chat_laftarraow"/&gt;
  
  &lt;RelativeLayout
  
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:maxWidth="220dp"
      android:layout_marginRight="-3dp"
      android:orientation="horizontal"
      android:layout_toLeftOf="@+id/left_chatArror"
      android:paddingBottom="5dp"
      android:paddingTop="5dp"
      android:background="@drawable/right_bubble_chat_drawable"&gt;
  
      &lt;/RelativeLayout&gt;
    &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Please suggest me how can I add shadow effect below the bubble as in the image below</p>
  
  <p><img src="https://i.stack.imgur.com/Q5kEx.png" alt="enter image description here"></p>