我可以将WebView与ImageButton重叠吗? [英] Can I overlap the WebView with an ImageButton?

查看:54
本文介绍了我可以将WebView与ImageButton重叠吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建的内容应如下所示:

What I want to create should look like this :

我想要这样,因为我希望按钮覆盖Webview的一部分内容,从而使用户无法访问.

I want it like this because I want the button to cover a part of the content of the webview making it unreachable for the user.

推荐答案

您可以使用FrameLayout如下操作...

You can do it using FrameLayout as follows...

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

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

    <Button
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:text="Button" />

</FrameLayout>

这篇关于我可以将WebView与ImageButton重叠吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆