I want to draw a border like this , Bordered Edittext
my code is as follows:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/blue" />
</shape>
</item>
<item
android:bottom="2dp"
android:left="2dp"
android:right="2dp">
<!--// add android:right="5dp" and android:left="5dp" for border on left and right-->
<shape android:shape="rectangle">
<padding
android:bottom="5dp"
android:left="5dp"
android:right="5dp"
android:top="5dp" />
<solid android:color="@color/bill_background" />
</shape>
</item>
</layer-list>
I managed to do something like this: My Edittext
I cant seem to adjust the height of the left and right sided borders.
Use this.
Toufiq Akbar. You should use Vector drawable.
I think It is useful to you... :)
Try this code! this will surely help