我正在使用文本視圖,其寬度與父級匹配。我想將其文本設置在正確的位置。如果我使用android:gravity="right"
那麼爲什麼它會移動到右上角?如何在正確的位置設置文本?
我使用這個:
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textSize="12sp"
android:textStyle="bold" />
我已經嘗試了很多次,但我無法取得好成績。