[linear_layout_4.xml] - Horizontal

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <TextView
        android:background="@drawable/red"
        android:layout_width="0dip"
        android:layout_height="fill_parent"
        android:layout_weight="1"/>

    <TextView
        android:background="@drawable/green"
        android:layout_width="0dip"
        android:layout_height="fill_parent"
        android:layout_weight="1"/>

    <TextView
        android:background="@drawable/blue"
        android:layout_width="0dip"
        android:layout_height="fill_parent"
        android:layout_weight="1"/>

    <TextView
        android:background="@drawable/yellow"
        android:layout_width="0dip"
        android:layout_height="fill_parent"
        android:layout_weight="1"/>

</LinearLayout>

'old > API_Demo' 카테고리의 다른 글

Views_Layout_Linear Layout_Uniform Size  (0) 2010.04.26
Views_Layout_Linear Layout_Simple Form  (0) 2010.04.26
Views_Layout_Linear Layout_Vertical  (0) 2010.04.26
Views_Layout_BaseLine  (0) 2010.04.26
Views_Layout Animation_Nested Animation  (0) 2010.04.26
Posted by jazzlife
,