It may be you're not re-populating the ListView over configuration changes. Try this: with the list showing properly, press the call button (which should pause your activity), then press the back button to resume your activity. Is the ListView populated? If not, you may have a logic problem, not a layout problem. Make sure the adapter and list are re-filled in your onCreate() code when your activity is paused or destroyed. You may need to save state info somewhere.
On Aug 25, 6:17 am, Jiri <[email protected]> wrote: > Hello list, > > i think i need some help with a layout issue. I have three views, two > TextViews (header and footer) and in between a ListView. They are > rendered good, in portait mode. When i go into landscape mode, the > ViewList is gone. Switching back to portait mode and the ViewList is > still gone....Here is my xml. > > <?xml version="1.0" encoding="utf-8"?> > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > <TextView > android:id="@+id/header" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:gravity="top" > android:text="HEADER" > /> > <LinearLayout > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_below="@+id/header" > android:layout_above="@+id/footer"> > <ListView > android:id="@+id/ListView01" > android:layout_width="wrap_content" > android:layout_height="fill_parent" > android:divider="@null" > android:fadingEdge="none"> > </ListView> > </LinearLayout> > <TextView > android:id="@+id/footer" > android:layout_alignParentBottom="true" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="FOOTER" > /> > </RelativeLayout> > > Any ideas why this is happening? > > Thnx > > Jiri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

