How to set image border for Layout (RelativeLayout) in Android? -


i want use border image below :

enter image description here set border layout ...? should ?

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#ffffff" /> <stroke android:width="1dp" android:color="#000000" /> <padding android:left="1dp" android:top="1dp" android:right="1dp" android:bottom="1dp" /></shape> 

save file in customborder.xml in drawbale folder. in layout file add line android:background="@drawable/customborder"


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -