答案 0 :(得分:1)
这是具有 drawabe
的图像的解决方案 <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color= "@color/themeColor"></solid>
<size android:width="150dp" android:height="100dp"/>
</shape>
</item>
<item>
<rotate android:fromDegrees="45" android:toDegrees="45"
android:pivotX="12%" android:pivotY="-140%" >
<shape android:shape="rectangle" >
<solid android:color="#ffffff" />
</shape>
</rotate>
</item>
</layer-list>