com_web_layview.xml 3.2 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <LinearLayout
        android:id="@+id/all_web_layout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:background="#fcfcfc" >

        <ImageView
            android:id="@+id/web_default_show"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="center"
            android:background="@drawable/float_default_load"
            android:contentDescription="@string/guild_img_des">
            </ImageView>

            <LinearLayout
                android:id="@+id/web_top"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_weight="9"
                android:background="#ffffff"
                android:orientation="horizontal"
                android:weightSum="10" >

                <!-- 此处添加关闭和刷新按钮 -->

                <Button
                    android:id="@+id/close_web_btn"
                    android:layout_width="80px"
                    android:layout_height="fill_parent"
                    android:background="@drawable/fancy_close_light" />

                <Button
                    android:id="@+id/rush_web_btn"
                    android:layout_width="80px"
                    android:layout_height="fill_parent"
                    android:background="@drawable/fancyservice_reload_light" />

                <Button
                    android:id="@+id/backward_web_btn"
                    android:layout_width="80px"
                    android:layout_height="fill_parent"
                    android:background="@drawable/qdservice_backward_light" />

                <Button
                    android:id="@+id/forward_web_btn"
                    android:layout_width="80px"
                    android:layout_height="fill_parent"
                    android:background="@drawable/qdservice_forward_light" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/web_main"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:background="#fcfcfc"
                android:orientation="vertical" >

                <!-- ImageView
                    android:id="@+id/web_default_show"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_gravity="center"
                    android:background="@drawable/float_default_load"
                    android:contentDescription="@string/guild_img_des" /-->

                <WebView
                    android:id="@+id/web_show_view"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent" />
            </LinearLayout>
        
    </LinearLayout>

</LinearLayout>