Take a look at layout_weight. -- Kostya Vasilyev -- http://kmansoft.wordpress.com
06.10.2010 21:58 пользователь "Yogans" <[email protected]> написал: Hi, I would like to have my list activity to display 2 items(title, content) in a single row. I have almost 10 rows to display like that. And I want the width of the columns to be equally spread out. I tried with linear layout and table layout, but I could not bring the columns equally sized. I am using the following layout. kindly help me and advice me on this....your help is greatly appreciated. code.... <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:background="@color/Red" android:layout_height="match_parent" xmlns:android="http:// schemas.android.com/apk/res/android"> <TextView android:id="@+id/text1" android:layout_width="0dip" android:background="@color/Black" android:layout_margin="3px" android:layout_weight="1" android:layout_height="match_parent" /> <TextView android:id="@+id/text2" android:layout_width="0dip" android:background="@color/Black" android:layout_weight="1" android:layout_marginTop="3px" android:layout_marginRight="3px" android:layout_marginBottom="3px" android:layout_height="wrap_content" /> </LinearLayout> regards, Yogans -- 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]<android-developers%[email protected]> For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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

