Sunday, June 20, 2010

[android-developers] using Linear Layout with Table Row

I cant figure out why the program keep having bugs if i use Linear
Layout with Table Row. Can any one help?


<TableLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1">

<TableRow>
<ImageView android:src="@drawable/image"
android:layout_gravity="left"/>
<ImageView android:src="@drawable/icon" />
</TableRow>

<TableRow>
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:text="Name: "
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView android:text="@string/app_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</LinearLayout>
</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 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