<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
    >
    
    <ViewFlipper
    android:id="@+id/viewflipper"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
        </ViewFlipper>
        
    <LinearLayout 
        android:id="@+id/header_layout"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:background="@drawable/header_bg"
        android:gravity="center_vertical"
        >
        <ImageView 
            android:id="@+id/header_home"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/header_home"
            />
        <ImageView 
            android:id="@+id/header_prev"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/header_prev"
            />
        <ImageView 
            android:id="@+id/header_list"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/header_list"
            />
        <TextView 
            android:id="@+id/header_title"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:text="Amber Cave Magazine"
            android:textColor="#FFFFFF"
            android:gravity="center"
            />
        <ImageView 
            android:id="@+id/header_favorite"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/header_favorite"
            />
        <ImageView 
            android:id="@+id/header_search"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/header_search"
            />
    </LinearLayout>
    
    <LinearLayout 
        android:id="@+id/footer_layout"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@drawable/footer_bg"
        android:gravity="center_vertical"
        >
        <ImageView 
            android:id="@+id/footer_prev"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/footer_prev"
            />
        <AbsoluteLayout 
            android:id="@+id/footer_navi_bg"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="@drawable/footer_navi_bg"
            >
        </AbsoluteLayout>
        <ImageView 
            android:id="@+id/footer_next"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/footer_next"
            />
    </LinearLayout>
</RelativeLayout>


XML은 이렇게 되있고


TwoDScrollView baseScrollView = new TwoDScrollView(BookActivity.this);
baseScrollView.setLayoutParams(new LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.MATCH_PARENT,
                LinearLayout.LayoutParams.MATCH_PARENT));

LinearLayout scaleView = new LinearLayout(BookActivity.this);
scaleView.setLayoutParams(new LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.MATCH_PARENT,
                LinearLayout.LayoutParams.MATCH_PARENT));
baseScrollView.addView(scaleView);
                
flipper.addView(baseScrollView);

이렇게 동적으로 레이아웃 2개 추가해주는데

baseScrollView 는 제대로 1280x800크기로 생성되는데
scaleView 는 MATCH_PARENT줬는데도 800x800 으로 생성되요

원인조차 못차고 벌써 대여섯시간짼데 미치겟음 ㅠㅠ