At a basic level, if you set things to absolute sizes (in pixels no less) you are not going to resize when the screen resizes due to an orientation change. You need to do your layout without absolute dimensions.
On Thu, Feb 12, 2009 at 3:54 PM, David <[email protected]> wrote: > > Hello, I need to have my view resize itself based on the orientation. > After extensive googling (maybe i was using the wrong terms) I could > find nothing telling me how to detect when the orientation was > changed. Here is my layout file: > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > <EditText android:id="@+id/htmledit" > android:layout_width="fill_parent" > android:layout_height="200px" > /> > <WebView android:id="@+id/htmlview" > android:layout_width="fill_parent" > android:layout_height="200px" > /> > </LinearLayout> > > how do I have it automatically resize itself? I want each item (the > EditText and the WebView) to fill half the screen (not counting the > title/notification bars). I set the height to absolute and not > wrap_content because wrap_content defaults to 1 line for EditText and > nothing for WebView. and fill_parent has the EditText on top of the > WebView. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

