안드로이드 개발 질문/답변
(글 수 45,052)
layout_weight를 사용하여 레이아웃을 만들었는데요... 레이아웃 안에 리스트뷰가 포함되어있습니다..
리스트뷰 아이템 개수가 늘어나면 전체 레이아웃을 스크롤하고 싶은데요.. 어떻게 해야될까요?
layout_weight로 구성하여서 스크롤이 불가능한가요?
도움 부탁드립니다.
<LinearLayout
android:layout_width=" fill_parent "
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="4" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="2" >
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
스크롤뷰로 감싸면 되지않나여?