2
선형 레이아웃에 HorizontalListView을 여러 개 표시하려고합니다. 그러나 전 HorizontalListView 만 볼 수 있습니다. 그 이후의 모든 것들이 사라졌습니다. 다음은 layout.xml`가 HorizontalListView의 여러 행을 표시합니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#fff"
android:orientation="vertical">
<com.devsmart.android.ui.HorizontalListView
android:id="@+id/saladMenuView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ddd"
android:fillViewport="false" />
<com.devsmart.android.ui.HorizontalListView
android:id="@+id/pizzaMenuView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ddd"
android:fillViewport="false" />
</LinearLayout>`
난 항상 saladMenuView을 볼 수 있지만 pizzaMenuView가 나타하지 않습니다.
이유를 아는 사람이 있습니까?
안드로이드를 제거하십시오 : fillViewport = "false"를 – QAMAR
시도가 나는 이유를 발견 그들 –
모두에 일부 내용을 추가 다음 내 layout.xml입니다. ** "android : layout_height ="220dp "**와 같은 고정 된 높이를 지정하면 다음 가로 좌표 뷰가 모두 표시됩니까? 아무도 이유를 아나요? –