That did not work.  Here is my tableRow layout.  Maybe I am doing
something wrong.


   <TableRow>

       <EditText android:id="@+id/txtUnitCount"
           android:text="12"
           android:padding="3dip"
           android:scrollHorizontally="true"
           android:layout_weight="1"
           android:layout_width="fill_parent"
           android:numeric="integer|decimal"/>

       <TextView
           android:id="@+id/lblUnitName"
           android:text="Ounces each"
           android:textStyle="bold"
           android:gravity="left"
           android:layout_weight="1"
           android:layout_width="fill_parent"
           android:padding="3dip" />

   </TableRow>

On Mar 18, 4:03 pm, Glen Humphrey <[email protected]> wrote:
> set the following properties for both the EditText and the TextView
> widgets.
>
>      android:layout_weight="1"
>      android:layout_width="fill_parent"
>
> On Mar 18, 2:56 pm, frizzo <[email protected]> wrote:
>
> > I have a TableLayout with a couple of TableRows.  Inside a table row,
> > i have an EditText widget followed by a TextView widget.
>
> > How can I make sure that each widget in the row takes equal width?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to