三角形
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<rotate
android:fromDegrees="-45"
android:toDegrees="45"
android:pivotX="0%"
android:pivotY="-45%" >
<shape android:shape="rectangle" >
<!-- Border -->
<stroke
android:width="10dp"
android:color="@color/red_900" />
<!-- Background -->
<solid android:color="@color/red_900" />
</shape>
</rotate>
</item>
</layer-list>
网友评论