I want to dynamically add image in EditText. Is it possible?
if anyone knows please give sample code for that.
I want to dynamically add image in EditText. Is it possible?
if anyone knows please give sample code for that.
you can also try this
SpannableString ss = new SpannableString("abc\n");
Drawable d = img.getDrawable();
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
ImageSpan span = new ImageSpan(d, ImageSpan.ALIGN_BASELINE);
ss.setSpan(span, 0, 3, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
editT.setText(ss);