android - Add bottom border line to the edit text widget -


i want add bottom border line edit text widget in material design, cant find way it. helpers edit:

    <shape xmlns:android="http://schemas.android.com/apk/res/android"     android:shape="rectangle">     <solid android:color="#ffffff" />     <stroke android:width="1dip" android:color="#000000" />     </shape> 

get 9patch image this site might produce them , apply background resource edit text

android:background="@drawable/9patchname" 

enter image description here

alternatively can fake separate view below edit text

<style name="divider">     <item name="android:layout_width">match_parent</item>     <item name="android:layout_height">1dp</item>     <item name="android:background">@color/grey</item> </style>   <view style="@style/divider" /> 

Comments