I want to create a message Row with corners like this: Image1
But i Can't understand the meaning of (fromDegree,toDegree,pivotX,pivotY) in my code below to achieve it
here is an image of what i've searched for and found but can't fix: Image2
My drawable code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:start="10dp">
<shape android:shape="rectangle" >
<corners android:bottomLeftRadius="10dip" android:bottomRightRadius="10dip" android:topRightRadius="10dip" />
<solid android:color="@color/white"/>
</shape>
</item>
<item android:bottom="0dp"
android:top="0dp"
android:gravity="start">
<rotate
android:fromDegrees="45"
android:toDegrees="45"
android:pivotX="135%"
android:pivotY="15%">
<shape android:shape="rectangle">
<solid android:color="@color/white"/>
<size android:height="10dp"
android:width="10dp"/>
</shape>
</rotate>
</item>
</layer-list>
thanks in advance.