android webview taking up full screen
<p>I'm trying to get a header "54dp" and a the rest of the activity be a WebView.</p>

<p>When I preview my activy in the "Graphical Layout" within eclips it looks good. But when run the application on the phone or emulator the webview takes up the entire screen.</p>

<p>This is what the preview looks like and how I want it:</p>

<p><img src="http://i.stack.imgur.com/B9iRB.png" alt="enter image description here"></p>

<p>But this is what I see when I run the app:</p>

<p><img src="http://i.stack.imgur.com/Fji7M.png" alt="enter image description here"></p>

<p>This is what the layout xml looks like:</p>

<pre class="lang-xml prettyprint-override"><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/page_background"
    &gt;

    &lt;LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/Layout_Header"
        android:layout_width="fill_parent"
        android:layout_height="54dp"
        android:orientation="horizontal" 
        android:background="@drawable/container_header"
        android:paddingLeft="16dp"
        android:paddingRight="16dp"

        &gt;

        &lt;ImageView
            android:id="@+id/imgHeaderLogo"
            android:layout_weight="1"
            android:layout_width="0dp"
            android:layout_height="46dp"
            android:contentDescription="@string/img_header_logo_description"
            android:src="@drawable/header_logo" 
            android:layout_gravity="center"
            /&gt;


    &lt;/LinearLayout&gt;


    &lt;WebView android:id="@+id/web_engine"
             android:layout_width="fill_parent"
             android:layout_height="fill_parent"
            /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<h1>SOLUTION:</h1>

<p>in the activity java file I had this:</p>

<pre class="lang-java prettyprint-override"><code>WebView browser = (WebView) findViewById(R.id.web_engine);
WebSettings webSettings = browser.getSettings();
setContentView(browser);
</code></pre>

<p>When I should have had this:</p>

<pre class="lang-java prettyprint-override"><code>setContentView(R.layout.activity_sign_in_web_view);
</code></pre>
