Hi all, I'm experiencing a very strange problem while using text filtering in a ListView. I'm using a FrameLayout described as follow:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent"> </ListView> <ListView android:id="@+id/list2" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"> </ListView> <WebView android:id="@+id/webview" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"> </WebView> </FrameLayout> Basically, I enable text filtering on my first ListView through setTextFilterEnabled(true). I can click on any item of this list to move forward to my second ListView (making the second list visible and hiding the first one). Finally, I can click on any item of my second ListView to display a WebView (making the WebView visible and hiding the second ListView). Everything works fine as long as I don't use text filtering on my first ListView. When I filter it, I can move to my second ListView by clicking an item, everything still works fine. But when I click an item in the second list, I get both my WebView and my first ListView displayed! It's obviously ugly. All the more, I can even use text filtering to filter my first list and see it being refreshed. My code remains exactly the same in both situations. I use setVisibility(View.GONE) and setVisibility(View.VISIBLE) to show or hide views. Any guess? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---