答案 0 :(得分:4)
<executions>
<execution>
<id>run-tests</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<rotate
android:fromDegrees="52"
android:toDegrees="45"
android:pivotX="-45%"
android:pivotY="90%" >
<shape
android:shape="rectangle" >
<solid
android:color="@color/colorPrimary"/>
</shape>
</rotate>
</item>
</layer-list>
答案 1 :(得分:0)
用它来制作线条。
<View
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/textView4"
android:layout_marginTop="210dp"
android:background="@color/cardview_dark_background"/>
你有线,绘制三角形现在没什么大不了的。