Scaling then rotating a rectangle drawable
问题 I would like to scale a rectangle drawable downwards, then rotate it so once it is clipped by the view it resembles a trapezoid with the left side slanted: The rotation is working fine: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item > <rotate android:fromDegrees="-19.5" android:toDegrees="-19.5" android:pivotX="0%" android:pivotY="0%" > <shape android:shape="rectangle" > <solid android:color="@android:color/black" /> <