<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:background="@drawable/red"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="@string/linear_layout_7_small"/>
<TextView
android:background="@drawable/green"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="@string/linear_layout_7_big"/>
<TextView
android:background="@drawable/blue"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="@string/linear_layout_7_small" />
<TextView
android:background="@drawable/yellow"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/linear_layout_7_wrap"/>
</LinearLayout>
'old > API_Demo' 카테고리의 다른 글
Views_Layout_Linear Layout_Layout Weight (0) | 2010.04.26 |
---|---|
Views_Layout_Linear Layout_Gravity (0) | 2010.04.26 |
Views_Layout_Linear Layout_Uniform Size (0) | 2010.04.26 |
Views_Layout_Linear Layout_Simple Form (0) | 2010.04.26 |
Views_Layout_Linear Layout_Horizontal (0) | 2010.04.26 |