Similar to the LeadingMarginSpan, except it would force a break of 
characters at the ending margin (right margin if text is DIR_LEFT_TO_RIGHT). 
 I want to achieve an effect in the TextView that is similar to the 
BLOCKQUOTE tag from HTML, so that text in the span will break at an 
arbitrarily specified ending margin.  I also (unfortunately) want the 
content to be editable by the user, which rules out using a WebView for this 
type of formatting.


I've been digging through the ASOP 2.3 code and have found that this would 
be a very non-trivial implementation.  From scanning through the code, my 
assumption is that I'd probably have to rebuild several of the functions in 
Layout.java and StaticLayout.java, to explicitly check for that particular 
spanned text during the text measurement and calculations.   It seems like 
these functions would be the most critical to modify:


StaticLayout.java::generate()

Layout.java::drawText()

Layout.java::measureText()


I'm hoping that I might be missing an easier solution and any tips or 
suggestions from anyone would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to