以编程方式创建此形状
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/carrot_shape_top">
<rotate
android:fromDegrees="45"
android:pivotX="-35%"
android:pivotY="95%"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/colorPrimaryDark" />
</shape>
</rotate>
</item>
</layer-list>