WebView falls under ActionBar

I am trying to get a transparent ActionBarone that stays on top, but that concerns the contents of my view when scrolling down. I did this with the ScrollViewsurrounding WebView, but now I had to remove it due to other problems.

This is my layout.

<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>

And here is what it looks like:

result

I would like the content of the webpage to fall under the action bar only after the first scroll ...

+4
source share

All Articles