How TextSize and LineSpace affects ImageSpan
问题 I want to measure ImageSpan with StaticLayout. to do this I use a simple code like below: SpannableStringBuilder content = new SpannableStringBuilder(); Spannable imageSpannable = getImageSpannable(); content.append(imageSpannable); StaticLayout layout = new StaticLayout(content, txt.getPaint(), txt.getWidth(), Layout.Alignment.ALIGN_NORMAL, 1, lineSpace, false); txt is a TextView and lineSpace just a variable indicating txt line space. And getImageSpannable: private Spannable