Android xml rectangle border

Categories: ANDROID like

Simple xml code for rectangle border with transparent background:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners
        android:radius="2dp" />
    <stroke
        android:width="2px"
        android:color="@color/white" />
</shape>

    Leave a Reply

    Your email address will not be published. Required fields are marked *