Hi, in my Android program I am trying to draw a table. For some odd reason the first field per row is drawn using a smaller font size then the other columns. I boiled this down to the below example which one can easily copy into a layout file and then preview it in the Eclipse Android layout editor.
Does anyone have an idea, WHY the first field is using a different font size? IMHO I don't do anything in that layout to trigger this.
Any ideas or hints welcome! What would I have to add to make all cells using the same font size?
Michael
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:paddingLeft="1dip"
android:paddingRight="1dip"
android:paddingBottom="1dip"
android:background="#00F"
>
<ScrollView
android:id="@+id/ScrollView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="vertical"
>
<HorizontalScrollView
android:id="@+id/HorizontalScrollView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="horizontal"
>
<TableLayout
android:id="@+id/ItemPane"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FF0"
>
<TableRow
android:id="@+id/HeaderRow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#0F0"
>
<TextView
android:id="@+id/NameField1"
android:text="First field"
android:layout_margin="2dp"
android:background="#FFF"
android:textColor="#000"
/>
<EditText
android:id="@+id/DataField11"
android:text="some field"
android:layout_margin="2dp"
android:background="#FFF"
android:textColor="#000"
/>
<EditText
android:id="@+id/DataField11"
android:text="another field"
android:layout_margin="2dp"
android:background="#FFF"
android:textColor="#000"
/>
</TableRow>
</TableLayout>
</HorizontalScrollView>
</ScrollView>
</LinearLayout>