开发者

How to put button on webview

开发者 https://www.devze.com 2023-03-27 05:07 出处:网络
I want in background I will show an webview. and on that webview on foreground i want to place another butt开发者_开发技巧on. How to achieve the same. I can load the googlemap using map view. but unab

I want in background I will show an webview. and on that webview on foreground i want to place another butt开发者_开发技巧on. How to achieve the same. I can load the googlemap using map view. but unable to place a button on it. I am showing google map in an mapview.

How to put button on webview

Thanks


Thank you all. I got the solution by using Framelayout.

<FrameLayout 

        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_below="@+id/header"
        android:layout_above="@+id/footer">
        <WebView
            android:id="@+id/GD_webview"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_above="@+id/footer" />

            <Button
            android:layout_centerVertical="true"
            android:id="@+id/setTimeBtn"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_width="wrap_content"
            android:background="@drawable/settime"
            android:layout_gravity="bottom"
            android:layout_marginBottom="15dip"></Button>
    </FrameLayout 
>
0

精彩评论

暂无评论...
验证码 换一张
取 消