テキストと一致するように編集テキストのサイズを変更したいだけです。テーブル レイアウトの列 3 に edittext を挿入すると、列 3 のスペース全体が埋まり、大きく見えます。サイズを変更したいです。それはどのように可能ですか?以下は私の.xmlコーディングです:
<TableRow>
<TextView
android:layout_column="1"
android:text="S"
android:layout_width="150dp"
/>
<TextView
android:layout_column="2"
android:text="C"
android:layout_width="75dp" />
<TextView
android:layout_column="3"
android:text="G"/>
</TableRow>
<View
android:layout_height="2dip"
android:background="#FF909090" />
<TableRow>
<TextView
android:layout_column="1"
android:id="@+id/s1"
android:text="Medium Text"/>
<TextView
android:layout_column="2"
android:id="@+id/c1"
android:text="Text"/>
<EditText
android:id="@+id/g1"
android:layout_column="3" />
</TableRow>