Android Listview Doesn't Expand The Whole Screen
I've problem similar to the one here: Android ListView doesn't expand the whole screen? The XML is: fill_parent for
layout_height
of your LinearLayout
elements. What layout you would like to achieve? Uniformly divide screen for all elements?Another problem is that using ListView
in ScrollView
is not a good idea also because ListView
itself is scrollable.
You should write what layout you would like to achieve with your XML. Also generally is a good practice to write your XML in multiple steps and iterate to woking solution layout by layout.
EDIT: Ok, try something like this:
<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"android:id="@+id/ResultLayout"><ListViewandroid:id="@+id/ListView"android:layout_width="fill_parent"android:layout_height="0dp"android:layout_weight="1" /><LinearLayoutandroid:id="@+id/pagingPanel"android:gravity="center"android:layout_width="fill_parent"android:layout_height="wrap_content"android:orientation="horizontal"></LinearLayout><Spinnerandroid:id="@+id/ManSpinner"android:layout_width="fill_parent"android:layout_height="wrap_content" /></LinearLayout>
Post a Comment for "Android Listview Doesn't Expand The Whole Screen"