leadingmarginspan2


LeadingMarginSpan2 - how to limit the number of paragraphs with margin

不问归期 提交于 2019-12-05 23:27:54
问题 I use a basic and very common implementation of a LeadingMarginSpan2 to wrap text around an image (since it seems to be the easiest way and please don't suggest me to use WebView s at this point): public class MyLeadingMarginSpan2 implements LeadingMarginSpan.LeadingMarginSpan2 { private int margin; private int lines; public MyLeadingMarginSpan2(int lines, int margin) { this.margin = margin; this.lines = lines; } @Override public int getLeadingMargin(boolean first) { return first ? margin : 0

工具导航Map