Im making a Layout, the parent Layout is a LinearLayout, and Inside is a EditText, It possible to have a text hint with an image with an specific size, without affecting the "border" in the EditText Style? My code look like this
<EditText android:id="@+id/name" android:layout_width="match_parent" android:layout_height="44dp" android:layout_gravity="center" android:hint="@string/name_user" android:drawableLeft="@drawable/user" android:drawablePadding="5dp" android:inputType="textMultiLine" android:background="@drawable/edittextbox" android:layout_marginTop="29dp" android:layout_weight="0.08" android:paddingLeft="10dp" /> My Style in de edittextbox is this:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#ffffff" /> <stroke android:width="1.3dip" android:color="#9b9b9b" /> </shape>
No comments:
Post a Comment