given a string in resources, how can I get the bounding rectangle for it?
For plain text, I could use Paint.getTextBounds(), but this is a string from resources that has newlines and attribute settings in it.
<string name="foobar"><small>Foo</small>\nBar</string>
In other words, I'm implementing a custom view that will be displaying a string like that, and I want to compute the size of my view.
More detail: Basically, I'm implementing a variant of TextView that adjusts its font size to fit the available space rather than one that adjusts its size to fit the text.