<HorizontalScrollView
        android:id="@+id/horizontalScrollView1"
        android:layout_width="match_parent"
        android:layout_height="200dp" >
        <LinearLayout
            android:layout_width="900dp"
            android:layout_height="match_parent"
            android:orientation="horizontal" >
            <ImageView
                android:id="@+id/viewImgFront"
                android:layout_width="300dp"
                android:layout_height="200dp"
                android:src="@drawable/icon" />
            <ImageView
                android:id="@+id/viewImgBack"
                android:layout_width="300dp"
                android:layout_height="200dp"
                android:src="@drawable/icon" />
        </LinearLayout>
    </HorizontalScrollView>
 
위와 같은 xml 레이아웃이 있습니다.
프로그래밍 적으로 LinearLayout 의 가로 사이즈를 조절하고 싶은데요..
구글링해서..
HorizontalScrollView h = (HorizontalScrollView)findViewById(R.id.horizontalScrollView1);
h.getChildAt(0).setLayoutParams(new FrameLayout.LayoutParams(300,200));
위와 같이 했는데 에러가 나네요...
조언 부탁드립니다.