<EditText
android:layout_width="match_parent"
android:layout_height="45sp"
android:layout_marginTop="10sp"
android:textColor="#000"
android:id="@+id/main_email_tv"
android:inputType="textCapWords"
android:hint="Email"
android:textSize="25sp"
android:drawableRight="@drawable/lock"
/>
I am adding lock image in edittext in the right side, but the problem is im not able to adjust image size in edittext.
Actually i was looking for this option and finally got that. android:drawableLeft="@drawable/pic by this option a image can be displayed in extream left of EditText. for other who is looking for same kind of answer must make sure that the size of image should be around 25-35px or else image will not be displayed properly inside editetxt.