0

How to add border on Layouts in Android

[code langauage=”xml”] <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle"> <stroke android:width="1dp" android:color="#33ffffff" /> <solid android:color="#33ffffff" /> </shape> </item> <item android:top="1dp" android:bottom="1dp"> <shape android:shape="rectangle"> <stroke android:width="1dp" android:color="#33ffffff" /> <solid android:color="#33ffffff" /> </shape> </item> </layer-list> [/code] then add this to… Continue Reading