나는 헤더를 추가 한 ListView를 가지고있다. 헤더에는 다른 ListView가 포함됩니다. 제한된 크기의 스크롤 대신 헤더의 ListView를 확장합니다.스크롤하는 대신 목록보기를 확대하는 방법은 무엇입니까?
이 나는 헤더
<ListView android:id="@+id/songinfo_geninfolist"
android:isScrollContainer="false" android:layout_marginLeft="10dip"
android:layout_margin="5dip" android:padding="5dip"
android:scrollbars="none"
android:layout_height="wrap_content" android:layout_width="match_parent">
</ListView>
에서 팽창하고이 XML은 주요 목록
<ListView android:id="@+id/songinfo_linklist"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_marginTop="10dip" android:layout_margin="5dip"
android:layout_height="match_parent" android:layout_width="match_parent">
</ListView>
입니다하지만 난 헤더가 포함와 목록을 얻고있다 작은 높이의 목록. 나는 머리글에있는 목록이 내용과 함께 성장하기를 바랍니다.
런타임시 목록 높이를 업데이트 할 수 있습니까 ?? 목록보기가 필요합니다. 왜냐하면 항목에 집중하여 클릭하기를 원하기 때문입니다. – rohit
문제가 해결되었습니다. 내용에 따라 높이를 설정합니다. – rohit