Android xml rectangle border
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>