[英]how to change text position in a textview?
在您添加此TextView
,如果你只是想移動文本不是TextView
android:paddingLeft="10dp"
要么
android:paddingStart="10dp" // prefer this
但是,如果您只想移動TextView
本身,則添加它
android:layout_marginLeft="10dp"
要么
android:layout_marginStart="10dp"
注意:您也可以將兩者結合使用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.