Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何创建具有倾斜模式的文本视图而不添加\t of \n?_Android - Fatal编程技术网

Android 如何创建具有倾斜模式的文本视图而不添加\t of \n?

Android 如何创建具有倾斜模式的文本视图而不添加\t of \n?,android,Android,我想为不同的行(线倾斜模式)创建不同边距起始点的文本视图,但不使用\t of \n。例如: 你最好的选择是使用填充或边距,也许可以考虑将文本分成单独的文本视图来实现这一点 示例: <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content"

我想为不同的行(线倾斜模式)创建不同边距起始点的文本视图,但不使用\t of \n。例如:


你最好的选择是使用
填充
边距
,也许可以考虑将文本分成单独的
文本视图
来实现这一点

示例:

  <TextView
            android:id="@+id/textView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            android:paddingLeft="10dp" <!--either margin or padding -->
            android:text="Stackoverflow..." />