Android white background EditText that act as button -
i'm trying style edittext 1 in above picture. tried setting background result not @ excpected
could point me right direction?
use xml background fro edittext
:
<?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="#cabbbbbb"/> <corners android:radius="2dp" /> </shape> </item> <item android:left="0dp" android:right="0dp" android:top="0dp" android:bottom="2dp"> <shape android:shape="rectangle"> <solid android:color="@android:color/white"/> <corners android:radius="2dp" /> </shape> </item> </layer-list>
and put padding in edittext
.
Comments
Post a Comment