<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/main_layout"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent">

    <LinearLayout android:id="@+id/webapp_titlebar"
                  android:visibility="gone"
                  style="@style/WebView.Titlebar"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal">
    
        <TextView android:id="@+id/webapp_title"
                  style="@style/WebView.Titlebar.Title"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:singleLine="true"/>

    </LinearLayout>

    <RelativeLayout android:id="@+id/gecko_layout"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1"
                    android:layout_below="@+id/webapp_titlebar">

        <include layout="@layout/shared_ui_components"/>

        <RelativeLayout android:id="@+id/splashscreen"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent" >

            <ImageView android:id="@+id/splashscreen_icon"
                      android:minWidth="128dip"
                      android:minHeight="128dip"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerHorizontal="true"
                      android:layout_centerVertical="true"/>

            <ProgressBar android:id="@+id/splashscreen_progress"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:gravity="center"
                         android:layout_centerHorizontal="true"
                         android:layout_alignParentBottom="true"
                         android:paddingBottom="30dip"
                         android:visibility="gone"/>

        </RelativeLayout>

    </RelativeLayout>

    <LinearLayout android:id="@+id/toast"
                  style="@style/Toast">

        <TextView android:id="@+id/toast_message"
                  style="@style/ToastMessage" />

        <ImageView android:id="@+id/toast_divider"
                   style="@style/ToastDivider" />

        <Button android:id="@+id/toast_button"
                style="@style/ToastButton" />

    </LinearLayout>

</RelativeLayout>
