title: Chat Bubble background Xml
body: <p>I am trying create chat drawable background but not for chat just for view.Tried using some codes no able acheive fully as per the required. please help me to finish this.</p>
  <p>Required image:</p>
  <p><a href="https://i.stack.imgur.com/Wtr5k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wtr5k.png" alt="enter image description here" /></a></p>
  <p>My code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  
  &lt;item&gt;
      &lt;rotate
          android:fromDegrees=&quot;45&quot;
          android:pivotX=&quot;0%&quot;
          android:pivotY=&quot;100%&quot;
          android:toDegrees=&quot;0&quot; &gt;
          &lt;shape android:shape=&quot;rectangle&quot; &gt;
              &lt;solid android:color=&quot;@color/colorWhite&quot; /&gt;
          &lt;/shape&gt;
      &lt;/rotate&gt;
  &lt;/item&gt;
  
  &lt;item android:left=&quot;20dp&quot;&gt;
      &lt;shape android:shape=&quot;rectangle&quot; &gt;
          &lt;solid android:color=&quot;@color/colorWhite&quot; /&gt;
          &lt;corners android:radius=&quot;5dp&quot; /&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fiPot.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fiPot.png" alt="enter image description here" /></a></p>