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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to