[기본 Form]

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:background="@drawable/blue"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">

    <TextView
        android:background="@drawable/box"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/linear_layout_1_top"/>

    <TextView
        android:background="@drawable/box"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/linear_layout_1_middle"/>

    <TextView
        android:background="@drawable/box"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/linear_layout_1_bottom"/>

</LinearLayout>


[linear_layout_1.xml] - Vertical

[linear_layout_2.xml] - Vertical (Fill Screen)

꽉 채우기 -> android:layout_height="fill_parent"


[linear_layout_3.xml] - Vertical (Padded)

나머지 영역 모두 할당 - > android:layout_weight="1"

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

Views_Layout_Linear Layout_Simple Form  (0) 2010.04.26
Views_Layout_Linear Layout_Horizontal  (0) 2010.04.26
Views_Layout_BaseLine  (0) 2010.04.26
Views_Layout Animation_Nested Animation  (0) 2010.04.26
Views_Layout Animation_Wave Scale  (0) 2010.04.26
Posted by jazzlife
,