Wednesday 12 October 2016

Android - Creating shapes using xml

16:10:00 Posted by Kumanan
<?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">

    <solid
        android:color="@color/white"/>
    <stroke android:width="1dp" android:color="@color/login_header" />
    <size
        android:width="15dp"
        android:height="15dp"/>

    <corners
        android:radius="5dp"
        android:bottomLeftRadius="5dp"
        android:bottomRightRadius="5dp"
        android:topLeftRadius="5dp"
        android:topRightRadius="5dp" >
    </corners>

</shape>