Android Bottom Border Line

The simplest way to add a bottom border line to a view is this one. If you search on Google and StackOverflow you will find many ways to do this, but they seemed overly complex compared to this one. So if you ever need a border line at the bottom of a view you can use this drawable.

<?xml version="1.0" encoding="utf-8" ?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
    <item android:gravity="bottom">
        <shape>
            <size android:height="1dp" />
            <solid android:color="#17a2e3" />
        </shape>
    </item>
</layer-list>

 

keyboard_arrow_up
sponsored
Exit mobile version