2017-02-16 3 views
0

내 ScrollView에 문제가 있습니다. 내 레이아웃의 아래쪽에 배치 된 Button으로 시작하는 ListView 항목을 도구 모음 아래에서 표시하려고합니다. 이 작동하지 않는, 내 ScrollView 한 번에 한 항목을 보여줍니다.ScrollView 한 번에 한 항목 만 표시

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/ScrollView01" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" > 

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     xmlns:tools="http://schemas.android.com/tools" 
     xmlns:app="http://schemas.android.com/apk/res-auto" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:paddingLeft="@dimen/activity_horizontal_margin" 
     android:paddingRight="@dimen/activity_horizontal_margin" 
     android:paddingTop="@dimen/activity_vertical_margin" 
     android:paddingBottom="@dimen/activity_vertical_margin" 
     app:layout_behavior="@string/appbar_scrolling_view_behavior" 
     tools:showIn="@layout/activity_wigeo_scan" 
     tools:context=".application.WiGeoScan"> 

     <TextView android:text="@string/wifi_scan" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:textColor="@color/colorPrimary" 
      android:id="@+id/content_wigeo_scan_textView_title" 
      android:textSize="35dp" 
      android:layout_alignParentTop="true" 
      android:layout_centerHorizontal="true" /> 

     <Space 
      android:layout_width="match_parent" 
      android:layout_height="10dp" 
      android:layout_below="@id/content_wigeo_scan_textView_title" 
      android:id="@+id/space0" /> 

     <ListView 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_below="@id/space0" 
      android:id="@+id/content_wigeo_scan_listView" 
      android:layout_alignParentLeft="true" 
      android:layout_alignParentStart="true"/> 

    </RelativeLayout> 
</ScrollView> 

답변

0

ScrollView으로 변경하십시오.

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/ScrollView01" 
    android:fillViewport="true" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" > 
+0

감사합니다. 사용해 보았습니다. –

+0

다른 사람도 알 수 있도록이 대답을 수락하십시오. –

관련 문제