안녕하세요.
초보 학생입니다.
모르는게 있어서 여쭈어 봅니다.
스크롤뷰는 하나의 자식뷰만을 가진다고 들었는데요,
아래와 같은 경우, 에러가 발생됩니다.
이걸 어떤식으로 수정을 해야할지 모르겠습니다.
도와주세요 ㅠㅠ..
===================
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/layout">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:orientation="vertical">
<ImageView
android:id="@+id/image1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/r1"
android:adjustViewBounds="true" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:orientation="horizontal">
<Button
android:id="@+id/btn1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/r2btn"
android:adjustViewBounds="true"
android:layout_weight="1.2"
android:onClick="mOnClick"/>
<ImageView
android:id="@+id/image3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:background="@drawable/r3"
android:layout_weight="1" />
</LinearLayout>
<ImageView
android:id="@+id/image3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:background="@drawable/r4" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:orientation="horizontal">
<ImageView
android:id="@+id/image3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:background="@drawable/r5"
android:layout_weight="1.2" />
<Button
android:id="@+id/btn2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/r6btn"
android:adjustViewBounds="true"
android:layout_weight="1"
android:onClick="mOnClick"/>
</LinearLayout>
<ImageView
android:id="@+id/image3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:background="@drawable/r7" />
</LinearLayout>
<com.cauly.android.ad.AdView
xmlns:app="http://schemas.android.com/apk/res/hannam.cauly"
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:appcode="CAULY"
app:adtype="cpm"
app:gender="all"
app:age="all"
app:effect="circle"
app:gps="off"
app:allowcall="yes"
app:reloadInterval="30"
app:dynamicReloadInterval="true"/>
</ScrollView>
============================
긴글 읽어 주셔서 감사합니다.




LinearLayout 안으로 넣으세요.
그리고 질문할땐 오류 내용 등을 함께 적으세요.
님은 오류 내용을 알 수 있지만 다른 사람은 오류 내용을 알 수 없습니다.