0

I have some type of chat in my app and want to achieve, to have and outlined speech-bubble as background for my messages.

I´ve already created a shape, which looks like this, but i cant achieve, to have this real chat-speech-bubble-shape like this (i painted this with windows paint program).

So my question: Is there wa way to create this shape as outlined drawable xml file, and if so, can anyone help me? I´ve found just the shapes: line, oval, rectangle. Can we create with these such an speechbubble. Here´s the code for my xml drawable (without speechbubble-shape):

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >
    <stroke android:width="2dp" android:color="@color/colorPrimary"/>
    <corners
        android:radius="7dp">
    </corners>
</shape>

0 Answers0