안드로이드 개발 질문/답변
(글 수 45,052)
xml에
여러 화면을 구성해 놓고
그중에서
<LinearLayout
android:id="@+id/LinLay_AccidentPhotoList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ListView
android:id="@+id/list_PhotoList"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
이렇게 중간에 들어가있습니다
파일을 전송할때 전송 목록을 보여주는 부분인데요
파일들을 추가할때마다 리스트뷰에 추가된 항목들을 보여주는데
mPhotoListArrayAdapter.notifyDataSetChanged();
이걸 써서 리스트 항목이 추가될때 마다 리스트 뷰에는 잘 뿌려줍니다
그런데 이 리스트 뷰가 짤려서 보이네요
그래서 리스트뷰가 길어질수록 LinearLayout 여기의 크기를 변화 시켜주고 싶은데
그게 자동으로 안되네요
좋은 방법좀 알려주세요 ㅠ.ㅠ
LinearLayout 는 스크롤뷰 안에 들어있습니다
스크롤 뷰를 뺴시고 쓰시면 됩니다
파일을 받았을때 리스트뷰가 늘어난다면
스크를 뷰도도 자동으로 생깁니다