我有一个很长的HTML文本,我需要在viewpager中以分页形式显示它。 Following this answer我使用了StaticLayout
。该解决方案唯一的问题是,如果有一个HTML标签从上一页开始到下一页结束,它将不会反映在下一页中。
说:
"<~b> This is a very long sample text that need's to be paginated.<~/b>".
分页后:
Page 1:- "<~b> This is a very long sample text"
Page 2:- " that need's to paginated.<~/b>"
然后第2页上的文字将不会是粗体,因为它应该是。