Now I have left the layout of the message, that's the code:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:top="17dp" android:left="4dp">
<rotate
android:fromDegrees="-45"
android:pivotX="0%"
android:pivotY="0%"
android:toDegrees="0" >
<shape android:shape="rectangle" >
<solid android:color="#fff3f3f3" />
</shape>
</rotate>
</item>
<item android:left="10dp">
<shape android:shape="rectangle" >
<solid android:color="#fff3f3f3" />
<corners android:radius="3dp" />
</shape>
</item>
</layer-list>
How do I get the right part of the figure for the Messages? What it looks like in the screenshot
Here you go a working code:
Change your activity's layout to:
Create my_shape2.xml file inside drawable folder
Create my_shape3.xml file inside drawable folder
The result