<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    <Spinner
        android:layout_margin="10dp"
        android:id="@+id/spinner"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
    <Listview
        android:layout_margin="10dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        />
    <LinearLayout 
        android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
        android:layout_margin="10dp"
        android:weightSum="2"
        >
        <Listview
            android:layout_margin="10dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
        />
        <LinearLayout 
            android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
            android:layout_weight="1"
            android:weightSum="2"
        >
            <Listview
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                />
            <Listview
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
             />
        </LinearLayout >
    </LinearLayout>
</LinearLayout>

解决方案 »

  1.   

    不是懒,是实在不会弄。[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/9.gif][/img
    刚试了下您的代码,好像不行。可能我没说清楚。
    我的意思就是布局文件正好就像我画的那样。
    Listview
            android:layout_margin="10dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
    这样写的话,如果第一个listview很多的话,下边肯定就跑出屏幕了。
      

  2.   

    那就设置一下 listview的高度,让它滚动显示
      

  3.   

    android:layout_height  这个根据你的需要 给个具体的值  比如   200dip。。看你的屏幕高度了。分配一下
      

  4.   

    最好去了解下LinearLayout布局的 android:layout_weight,看是如何平均分配空间大小的
      

  5.   

    这是伸手党么,下LinearLayout+android:layout_weight自适应平屏幕