I want to insert small pictures, like arrow icons for example, into certain positions of contents of a TextView
.
The photo below depicts exactly what I
You can create SpannableString and add any object to your string
TextView textView = (TextView) findViewById(R.id.textView);
ImageSpan imageSpan = new ImageSpan(this, R.drawable.ic_launcher);
SpannableString spannableString = new SpannableString(textView.getText());
int start = 3;
int end = 4;
int flag = 0;
spannableString.setSpan(imageSpan, start, end, flag);
textView.setText(spannableString);