Ho I have two list view on a frame layout.
I want one overlay the other and it has not a transparent background.
I have do this
<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>
but don’t work correctly.
Thankyou
try using
<RelativeLayout>instead of<FrameLayout>Edit:
To get rid of transparency you need to set the background color of the listView or the items in the listView’s adapter. These questions would help you do that:
Changing background color of ListView items on Android
listview item background color change