0
조부모 프레임 (parent = linearlayout, grandparent = scrollview)과 일치하도록이 코드에서 listView를 늘리는 방법. 지금까지, 내 listview 최대 3 항목 만 늘어납니다. ?.내 listview를 scrollview의 heigth로 늘리는 방법은 무엇입니까?
<ScrollView android:layout_span="2" android:layout_width="fill_parent" android:layout_height="90pt">
<LinearLayout android:id="@+id/linearLayout1"
android:orientation="vertical" android:layout_span="2"
android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_height="match_parent">
<TextView android:id="@android:id/empty" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:typeface="monospace" android:layout_height="0dip" android:text="@string/immu_no_list_data_text" android:layout_weight="1.0" android:textSize="20dp"></TextView>
<ListView android:layout_weight="1.0" android:layout_width="wrap_content" android:id="@+id/list_immu" android:layout_gravity="center_vertical" android:layout_height="fill_parent"></ListView>
</LinearLayout>
</ScrollView>
화면 맨 아래에 내 버튼이 있습니다. 예! hehe 선형 레이아웃 레이아웃의 다른 아이디어는 무엇입니까? hehe. 내 실제 문제는 목록이 동적으로 채워지면 내 단추가 사용자가 보거나 사용할 수없는 화면 아래로 밀려납니다. ( – MarkJ
전체 레이아웃 및/또는 스크린 샷을 추가하여 너는 성취해야 해. –