I am developing an emoji keyboard and want to print images in the watsapp editor. I tried it with a spannable string, but it only prints the text specified in the constructor. What do I need to do? My code is as follows:
Drawable d = getResources().getDrawable(watsapp1[j]); d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight()); ImageSpan span = new ImageSpan(d, ImageSpan.ALIGN_BASELINE); Log.i("",""+span); SpannableString ss = new SpannableString(" "); ss.setSpan(span, 0,1, Spannable.SPAN_EXCLUSIVE_INCLUSIVE);
source share