마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

xml - list view가 더이상 커지지 않는거죠?

0 추천

 

       
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/LinearLayout1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    tools:context="com.example.reco01.MainActivity" >

    <com.example.reco01.beaconView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1" />

    <LinearLayout
        android:id="@+id/LinearLayout2"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:orientation="vertical" >

        <Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="Button" />

        <ScrollView
            android:id="@+id/scrollView1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" >

            <ListView
                android:id="@+id/ListView1"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent" >
            </ListView>
        </ScrollView>
    </LinearLayout>

</LinearLayout>

 

왜...왜죠 ㅠㅠ

야도란 (1,410 포인트) 님이 2015년 1월 8일 질문

2개의 답변

+1 추천
 
채택된 답변
scrollview 에 fillviewport 인가 하는 옵션있습니다.

true 줘서 해보세요.
비애천사 (12,080 포인트) 님이 2015년 1월 8일 답변
야도란님이 2015년 1월 9일 채택됨
0 추천
스크롤뷰

  리니어레이아웃

    리스트뷰

이렇게 중간에 하나 추가해보셔요
nicehee (73,100 포인트) 님이 2015년 1월 8일 답변
...