i can't figure this one out I got all my items in a table view and I want to have the text boxes be differnt sizes as some hold smaller some hold bigger. and others are text entry. but it seems as though insted of beeing able to set size per box what it will do is take the size of the largest box and use it for the size of all edit boxes even if there is an explicit entry for a smaller size on that box it'll overwrite that. how do I avoid this problem?
here's the xml file i'm using, in this it sets all the edit boxes to 150dip wide even the one where I have it set to 12dip but I don't want them all to be 150dip wide! I want the one I set to 12 be 12 and the other 150 how do I do this? <?xml version="1.0" encodin:g="utf-8"?> <TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" > <!-- people spinner --> <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <Spinner android:id="@+id/tpcpperson" android:layout_span="4" android:layout_width="fill_parent" android:layout_height="wrap_content" > </Spinner> </TableRow> <!-- 02 --> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="O2 Stats" > </TextView> <EditText android:id="@+id/tpcpo2stat" android:layout_width="12dip" android:layout_height="wrap_content" android:text="00" android:textSize="18sp"> </EditText> <CheckBox android:id="@+id/tpcpo2placed" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Placed"></CheckBox> </TableRow> <!-- Apical pulse --> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Apical pulse" android:textSize="16sp" android:layout_gravity="center_vertical" > </TextView> <EditText android:id="@+id/tpcpAPulse" android:layout_width="150dip" android:layout_height="wrap_content" android:text="000" android:textSize="18sp" > </EditText> </TableRow> <!-- Pain --> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Pain scale\nlocation" android:textSize="16sp" android:layout_gravity="center_vertical" > </TextView> <EditText android:id="@+id/tpcppain" android:layout_height="wrap_content" android:text="000" android:textSize="18sp" android:layout_width="wrap_content"> </EditText> </TableRow> <!-- Stat meds --> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Stat Meds" android:textSize="16sp" android:layout_gravity="center_vertical"> </TextView> <EditText android:id="@+id/tpcpstatmed" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="" android:layout_span="2" android:textSize="18sp"> </EditText> </TableRow> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <CheckBox android:layout_height="wrap_content" android:id="@+id/ tpcpcalledmd" android:layout_width="wrap_content" android:text="call md" ></CheckBox> <EditText android:id="@+id/tpcpmdnumber" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="4075755687" android:layout_span="2" android:textSize="18sp"> </EditText> </TableRow> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/tpcpsave" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="4" android:text="Save" android:layout_gravity="center_horizontal" > </Button> </TableRow> </TableLayout> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

