У меня есть три списка в horizontalScrollView. Я хочу, чтобы каждый из них занимал весь экран, включив их в linearlayout, который установлен (layout_width: match_parent, layout_height: match_parent). Однако это не работает. Как вы видите на скриншоте, три списка просто тесно связаны друг с другом.Как установить listviews в horizontalScrollView, чтобы заполнить экран?
Любые предложения, чтобы каждый из трех списков занимал весь экран? Большое спасибо.
<HorizontalScrollView
android:id="@+id/horizontalScrollView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/page_bg_color">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tab_login_myFriends_requestList"
android:background="#ffffffff" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tab_login_myFriends_pendingList"
android:background="#ffffffff" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tab_login_myFriends_confirmedList"
android:background="#ffffffff" />
</LinearLayout>
</LinearLayout>
</HorizontalScrollView>
показать нам свой XML? – Hades
что вы имеете в виду, занимаете весь экран? у вас есть 3 списка? Вы хотите что-то вроде одного рядом с другим? в равной пропорции? – Hades