Android rectangle with bottom right corner triangle

To create rectangle with bottom right corner triangle for drop down background



<?xml version="1.0" encoding="utf-8"?>

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape>
            <solid android:color="#ffffff" />
            <stroke
                android:width="1dp"
                android:color="@color/background_gradient_top" />
            <padding
                android:bottom="1dp"
                android:left="1dp"
                android:right="1dp"
                android:top="1dp" />
        </shape>
    </item>
    <item android:bottom="5dp" android:right="5dp">
        <rotate
            android:fromDegrees="-45"
            android:toDegrees="0"
            android:pivotX="150%"
            android:pivotY="20%" >
            <shape
                android:shape="rectangle" >
                <solid android:color="@color/primary_dark_material_light" />
            </shape>
        </rotate>
    </item>
</layer-list>
Share on Google Plus

About Nice

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment