Android 覆盖两个没有透明度的listview

Android 覆盖两个没有透明度的listview,android,listview,Android,Listview,我在一个框架布局上有两个列表视图。 我想要一个覆盖另一个,它没有一个透明的背景。 我必须这样做 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView

我在一个框架布局上有两个列表视图。 我想要一个覆盖另一个,它没有一个透明的背景。 我必须这样做

    <FrameLayout  
    xmlns:android="http://schemas.android.com/apk/res/android"  
    android:layout_width="fill_parent"  
    android:layout_height="fill_parent">  


     <ListView
        android:id="@+id/autocompleteCompany"
        android:layout_width="100dip"
        android:layout_height="wrap_content"
        android:drawSelectorOnTop="true"
        android:paddingLeft="30dip"

         >

    </ListView>
  <ListView
      android:id="@+id/list"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" >
    </ListView>
</FrameLayout> 

但不能正常工作。 谢谢

尝试使用
而不是

编辑:

要消除透明度,需要设置listView的背景色或listView适配器中的项。这些问题将帮助您做到这一点:


您好,谢谢您的回答。您好,请尝试相对布局,但结果相同。到底发生了什么?第二个列表没有覆盖另一个列表?或者其他问题?第二个列表与另一个列表完全重叠,但第一个列表的背景是透明的,它可以看到下面另一个列表视图的项目。