[AC-6604] Android: Titanium.UI.AttributedString with Ti.UI.ATTRIBUTE_BASELINE_OFFSET
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, attributedString, label |
Reporter | Jose Enrique |
Assignee | Joshua Quick |
Created | 2020-09-21T14:31:02.000+0000 |
Updated | 2020-09-21T21:20:07.000+0000 |
Description
When using the AttributedString on a label with the attribute ATTRIBUTE_BASELINE_OFFSET and a range only or a certain part of the text to modify in Android all the text in the label is modified, or is not applying the range. In iOS this work correctly.
Attachments
[~jogios], I recommend that you use the superscript/subscript styles instead. That will work on both platforms... with the only limitation being you can't control the offset. Currently, Android's baseline offset sets the entire "line" height/padding.