code to insert image inside of EditText,in Android

Try this, i hope you are in search of this:
   <EditText
        android:id="@+id/editText1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:drawableLeft="@drawable/icon">
    </EditText>
The same thing you can try for:
android:drawableRight
android:drawableTop
android:drawableBottom
android:drawablePadding

Comments

Post a Comment

Popular posts from this blog

Custom Dialog with no title and full screen in Android

code to display .pdf,.text,.DOC,.DOCX,.doc extension files exists in SDCard

Best working code to set Date limits on Date Picker Dialog,in Android