I have researched on Google how to insert icons in EditText. However, most of it is talking about something like: How to add icon inside EditText view in Android ?.
That is adding a static icons.
However, what I like is adding icons between the text like typing message in MSN or Whatsapp. First of all, there is a button near the EditText. When clicked, show a dialog that can choose any icons. After choosing the icons, it will append after the text.
Is it possible to do it?
Asked
Active
Viewed 1,482 times
3
-
3use [ImageSpan](http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CFIQFjAA&url=http%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Ftext%2Fstyle%2FImageSpan.html&ei=juIDUJeeOcnirAeQ1bSYBg&usg=AFQjCNEM0s0tlDOHb9PawrF_d4S3awgoLw&sig2=IeMdjfqKco5JYpl5npW4lw) for adding images between text in textView – ρяσѕρєя K Jul 16 '12 at 09:45
1 Answers
2
If you want this ! so ImageSpan is what you want.And Introduction to Spans is complete tutorial how to use Spans

Trung Nguyen
- 7,442
- 2
- 45
- 87