Friday, December 17, 2010

[android-developers] Re: Data is not displaying in line

Hi, here is .xml file

<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:stretchColumns="0,1,2"
android:id="@+id/tLayout"
android:scrollbars="horizontal"

>


<TableRow>

<TextView android:id="@+id/room"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#00ccff"
android:typeface="monospace"
android:padding="5dip" />
android:layout_margin="3dp">
android:gravity="center"

/>
<TextView android:id="@+id/switch1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#00ccff"
android:typeface="monospace"
android:padding="5dip" />
android:layout_margin="3dp">
android:gravity="center"

/>
<TextView android:id="@+id/id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#00ccff"
android:typeface="monospace"
android:padding="5dip" />
android:layout_margin="3dp">
android:gravity="center"

/>


</TableRow>
</TableLayout>

On Dec 17, 10:04 pm, TreKing <treking...@gmail.com> wrote:
> On Fri, Dec 17, 2010 at 4:06 AM, pramod.deore <deore.pramo...@gmail.com>wrote:
>
> > But data is not show neatly, if suppose first column
> > value is very small for row 1 and large for row 2 then second column
> > of row 1 start early and second column of 2 nd row start very late.
>
> What you expect is the way it should work by default. You probably set you
> XML up wrong. Post how your table is set up.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment