1

I want to set image instead of edit-text view in Android.

  • are you set the image left are right in the edittext? – Android_coder Feb 21 '13 at 13:18
  • 1
    what's your code ? what have you tried ? why are you unable to do it ? it's just a matter of removing the edit-text and adding an image so it's difficult to see what's the problem. – ben75 Feb 21 '13 at 13:22
  • http://stackoverflow.com/questions/3703283/how-can-i-add-an-image-on-edittext – Shiv Feb 21 '13 at 13:33

1 Answers1

0

One solution would be to create your own TextView with an OnTextChangedListener. In the listener take the last character entered and append it to a cached value. Then replace the value with your own character. (any ASCII character)

If you want to get an image inside then you'd have to take the concept much further and create your own TextView class that probably overrides onDraw and adds an image instead of text.

Sababado
  • 2,524
  • 5
  • 33
  • 51