데이터를 보여주는 뷰 페이지 입니다.

 

구조는,

 

-타이틀 바 이미지 (Imageview)

-텍스트 1 (TextView)

-텍스트 2 (TextView)

-내용 이미지 (ImageView)

-내용 텍스트 (EditText)

-버튼 1 / 버튼 2 (ImageButtton / ImageButton)

-구분용 라인 이미지 (ImageView)

-댓글 리스트 뷰 (ListView)

 

이렇게 구현하고자 아래와 같이 xml을 배치했는데 안되네요...

 

 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:background="#ffffff"
 android:orientation="vertical">
 
 <ImageView
  android:background="@drawable/detail_logo"
  android:layout_width="wrap_content"  android:layout_height="wrap_content"
  android:layout_gravity="center_horizontal">
 </ImageView>
  
 <ScrollView
   android:layout_width="fill_parent"   android:layout_height="fill_parent"
   android:fadeScrollbars="true">
   <LinearLayout
    android:layout_width="fill_parent"   android:layout_height="wrap_content"
    android:orientation="vertical"  android:padding="5dp">
   
   <LinearLayout
    android:layout_height="wrap_content"
    android:background="@drawable/round_box_bg_white"
    android:orientation="vertical"  android:padding="5dp" android:layout_width="fill_parent">
    <TextView 
     android:id="@+id/detail_menu4_subject"
     android:text="제목" android:layout_height="wrap_content"  android:layout_width="fill_parent">
    </TextView>
    <TextView 
     android:id="@+id/login_user_id4"
     android:layout_width="wrap_content"   android:layout_height="wrap_content">
    </TextView>
   </LinearLayout>
   
   <ImageView android:src="@drawable/blank"
    android:id="@+id/detail_id_img4" android:scaleType="fitXY"
    android:layout_gravity="center"   android:layout_margin="5dp"
    android:layout_width="wrap_content"   android:layout_height="wrap_content" >
   </ImageView>
   
   <EditText  android:id="@+id/detail_menu4_comment"  
    android:layout_width="fill_parent"  android:layout_height="wrap_content">
   </EditText>
   
   <LinearLayout
    android:layout_width="fill_parent"   android:layout_height="wrap_content"
    android:id="@+id/buttonLayout"   android:gravity="center"  android:layout_margin="5dp" >
    <ImageButton
     android:id="@+id/modifyBtn4"
     android:background="@drawable/click_main_update_icon"
     android:layout_alignParentRight="true"  android:textSize="12dp"      
     android:layout_width="wrap_content"  android:layout_height="wrap_content">
    </ImageButton>
    <ImageButton
     android:id="@+id/detail_write_reply_Btn"
     android:background="@drawable/click_reply_write_icon"
     android:layout_marginLeft="10dp"
     android:layout_width="wrap_content"  android:layout_height="wrap_content">
    </ImageButton>
   </LinearLayout>
   
   <ImageView
    android:background="@drawable/line"
    android:layout_width="fill_parent"  android:layout_height="wrap_content">
   </ImageView>
  </LinearLayout>
 
 <ListView
  android:id="@+id/detail_replyMain"   
  android:layout_centerHorizontal="true"  
  android:layout_width="fill_parent"  android:layout_height="wrap_content">
 </ListView>
 </ScrollView>  
</LinearLayout>


ScrollView can host only one direct child 에러가 나는데 어떻게 해야 할런지 도저히 감히 안잡힙니다.