尝试对齐文本,但我无法做到这一点我想开始文本从左侧和右侧以相等的边距开始结束。如何做到这一点?
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:lineSpacingExtra="4dp"
android:layout_marginRight="3dp"
android:layout_marginLeft="3dp"
android:paddingBottom="20dp"
android:text="@string/about_us"
android:textColor="@color/black"
android:textSize="15sp"/>
</LinearLayout>
最佳答案
关于android - 在 Textview 中对齐文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42196168/