Android WebView在ActionBar下运行

Android WebView在ActionBar下运行,android,webview,android-actionbar,Android,Webview,Android Actionbar,我试图让一个透明的操作栏保持在顶部,但当我向下滚动时,它会覆盖我视图的内容。我是用ScrollView围绕WebView完成的,但现在由于其他问题,我不得不删除它 这是我的布局 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/mainCon

我试图让一个透明的
操作栏保持在顶部,但当我向下滚动时,它会覆盖我视图的内容。我是用
ScrollView
围绕
WebView
完成的,但现在由于其他问题,我不得不删除它

这是我的布局

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/mainContent"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:clipToPadding="false"
    tools:context="com.example.app365.MainActivity" >

    <com.example.app365.MyWebView
        android:id="@+id/webview"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:clipToPadding="false"
        android:fitsSystemWindows="true" />

    <LinearLayout
        android:id="@+id/bottomBar"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:orientation="horizontal"
        android:weightSum="3" >

        <ImageButton
            android:layout_width="40dp"
            android:layout_height="70dp"
            android:layout_gravity="left"
            android:layout_weight="1"
            android:background="@null"
            android:src="@drawable/share" />

        <ImageButton
            android:layout_width="40dp"
            android:layout_height="70dp"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:background="@null"
            android:src="@drawable/home" />

        <ImageButton
            android:layout_width="40dp"
            android:layout_height="70dp"
            android:layout_gravity="right"
            android:layout_weight="1"
            android:background="@null"
            android:src="@drawable/social1" />
    </LinearLayout>
</RelativeLayout>

这就是它的样子:


我希望webview内容仅在第一次滚动后才进入actionbar…

您是否尝试将页边空白顶部添加到
?actionBarSize
?是的,但webview最终位于actionbar下,透明度没有用。我想要这种效果,但在开始时,webview内容应该在ActionBar下