Questions tagged [leadingmarginspan2]

An extended version of LeadingMarginSpan, which allows the implementor to specify the number of lines of the paragraph to which this object is attached that the "first line of paragraph" margin width will be applied to.

An extended version of LeadingMarginSpan, which allows the implementer to specify the number of lines of the paragraph to which this object is attached that the "first line of paragraph" margin width will be applied to.

There should only be one per paragraph. The leading margin line count affects all LeadingMarginSpans in the paragraph, adjusting the number of lines to which the first line margin is applied.

As with LeadingMarginSpans, should be attached from the beginning to the end of a paragraph.

3 questions
22
votes
1 answer

What is Leading Margin in Android?

What is the meaning of leading margin as in LeadingMarginSpan LeadingMarginSpan.Standard LeadingMarginSpan.LeadingMarginSpan2 The documentation for LeadingMarginSpan says A paragraph style affecting the leading margin. There can be multiple …
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
7
votes
0 answers

LeadingMarginSpan2 - how to limit the number of paragraphs with margin

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 WebViews at this point): public class MyLeadingMarginSpan2 implements…
Droidman
  • 11,485
  • 17
  • 93
  • 141
0
votes
1 answer

Text coming from a raw file flowing around an image

this is my first question here. I'm trying to develop a "book" with text and images and I'm having problems to show a text (loaded from a raw file) flowing around and image in a textview. I have tried this and it works fine while the text is…