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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -