Make A View With Rectangle Shape Using Xml Definitions (drawable) In Android
https://drive.google.com/file/d/0B0vP0ppNf8G3MFdBRmF5WkJEZ3c/view?usp=sharing I want to create shape as above. How do you create this using xml?
Solution 1:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:right="-100dp">
<rotate
android:fromDegrees="-5"
android:pivotX="0%"
android:pivotY="100%">
<shape android:shape="rectangle">
<solid android:color="#f9c" />
</shape>
</rotate>
</item>
</layer-list>
Post a Comment for "Make A View With Rectangle Shape Using Xml Definitions (drawable) In Android"