Android 如何创建具有倾斜模式的文本视图而不添加\t of \n?
我想为不同的行(线倾斜模式)创建不同边距起始点的文本视图,但不使用\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"
你最好的选择是使用
填充
或边距
,也许可以考虑将文本分成单独的文本视图
来实现这一点
示例:
<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..." />