0
TableRow
にTextView
の2つがありますが、そのうちの1つに大きなテキストがあります。私はTextView
最初はTableRow
のトップにフロートしたい:TextViewをTableRowの先頭にフロートする
<TableRow
android:id="@+id/trLocation"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/location"/>
<TextView android:layout_width="wrap_content"
android:textSize="50dp"
android:layout_height="wrap_content"
android:text="1234"
android:id="@+id/tvLocation"
android:layout_weight="1"
/>
</TableRow>
は、私がlayout_gravity
とgravity
を使用してみましたが、どちらも効果がありません。
を試してみてください。私はtextsizeを変更するときに、2つの 'layout_height'も変更する必要があります。 –
dim.xmlを使用してtextSizeなどの数値を設定する場合は、2か所で変更する必要はありません –