Android white background EditText that act as button -


enter image description here

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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -