fancy_webview_service.xml 4.5 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/qdservice_webview_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="@dimen/qdservice_header_height" >

        <Button
            android:layout_width="match_parent"
            android:layout_height="@dimen/qdservice_header_height"
            android:background="#ff373737" />

        <Button
            android:layout_width="@dimen/qdservice_btn_bg_width"
            android:layout_height="@dimen/qdservice_header_height"
            android:background="#ff191919" />

        <TableLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="right"
            android:orientation="horizontal"
            android:stretchColumns="4" >

            <TableRow>

                <ImageView
                    android:id="@+id/qdservice_btn_close"
                    android:layout_width="@dimen/qdservice_btn_size"
                    android:layout_height="@dimen/qdservice_btn_size"
                    android:layout_marginTop="@dimen/qdservice_btn_margin"
                    android:background="@drawable/fancyservice_btn_close" />

                <ImageView
                    android:id="@+id/qdservice_btn_back"
                    android:layout_width="@dimen/qdservice_btn_size"
                    android:layout_height="@dimen/qdservice_btn_size"
                    android:layout_marginTop="@dimen/qdservice_btn_margin"
                    android:background="@drawable/fancyservice_btn_back" />

                <ImageView
                    android:id="@+id/qdservice_btn_forward"
                    android:layout_width="@dimen/qdservice_btn_size"
                    android:layout_height="@dimen/qdservice_btn_size"
                    android:layout_marginTop="@dimen/qdservice_btn_margin"
                    android:background="@drawable/qdservice_btn_forw" />

                <ImageView
                    android:id="@+id/qdservice_btn_reload"
                    android:layout_width="@dimen/qdservice_btn_size"
                    android:layout_height="@dimen/qdservice_btn_size"
                    android:layout_marginTop="@dimen/qdservice_btn_margin"
                    android:background="@drawable/fancyservice_btn_relo" />

                <ImageView
                    android:id="@+id/qdservice_btn_blank"
                    android:background="#00000000" />
            </TableRow>
        </TableLayout>
    </FrameLayout>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <WebView
            android:id="@+id/qdservice_webview_page"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scrollbars="none" />

        <LinearLayout
            android:id="@+id/qdservice_webview_error"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#ffffffff"
            android:gravity="center"
            android:orientation="horizontal"
            android:paddingBottom="30dp" >

            <ImageView
                android:layout_width="50dp"
                android:layout_height="50dp"
                android:background="@drawable/fancyservice_error"
                android:contentDescription="@string/qdservice_webview_error_desc1" />

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="10dp"
                android:gravity="center_vertical"
                android:orientation="vertical" >

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/qdservice_webview_error_desc1"
                    android:textColor="#aa666666"
                    android:textSize="30sp" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/qdservice_webview_error_desc2"
                    android:textSize="12sp" />
            </LinearLayout>
        </LinearLayout>
    </FrameLayout>

</LinearLayout>