java.lang.RuntimeException: PARAGRAPH span must start at paragraph boundary (46 follows )

android 列表中用textview 加载html内容时有obj和浅蓝色小方块

https://mp.csdn.net/postedit/79727019 


采用这种方法去掉obj和浅蓝色小方块,在textview中设置setText(HTML) ,textView 设置为singleline="true",在android 7.0以上会报错,如果html的内容超过了1行,会报java.lang.RuntimeException: PARAGRAPH span must start at paragraph boundary (46 follows )

具体产生原因:html 在textview 显示一行字时候,html有些标签只有start没有end

具体解决方式:

https://stackoverflow.com/questions/40018008/java-lang-runtimeexception-paragraph-span-must-start-at-paragraph-boundary-46


注:最好别在列表里展示html内容

你可能感兴趣的:(android)