如何为 TextView 添加缩进 android

How to add indentation for TextView android

如何为 TextView android 添加缩进?

1) 如何在 TextView 中查找字符串中的数字?
2) 如何添加这一行缩进,比如说'\t'?

您可能想要在垂直线性布局中创建多个 TextView。 然后,您可以使用 paddingLeftlayout_marginLeft 来缩进您的文本。

另一种可能是使用 WebView,在 HTML 中设置文本并将其放入 WebView

你是不是想说当有新点来的时候要加上\t? 例如: <\t>1。 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <\t>2.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx