feat(android): text alignment#602
Conversation
There was a problem hiding this comment.
Why do we need to modify logic inside list styles?
There was a problem hiding this comment.
The only behavior we modify in list styles is the handling of ZWS insertion and removal.
We need this because there may already be a ZWS present in a paragraph due to an applied alignment style. In that case, when applying a list style, we don't want to insert another ZWS, we should reuse the existing one.
Similarly, when removing a list style, we don't want to remove the ZWS if it is still needed by alignment style applied to that paragraph.
|
What's the plan for implementing |
Summary
Adds text alignment for Android
(Note:
justifyalignment is not natively supported for single spans on Android and will not work).Test Plan
Run example app and play with
textAlignmentwhen different styles are toggled.Check if paragraphs/lists with different
textAlignmentthan auto are properly parsed and containstyle="text-align:center|right"inside HTMLScreenshots / Videos
Screen.Recording.2026-05-20.at.12.06.27.mov
Compatibility
Checklist