需要设计界面,请达人帮忙 需要实现的是2层。底层是WebView,然后在点击,或者触发事件时候在屏幕中间播放动画。应该怎样设计? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 最下面用relativeLayout上面放 webview再在上面放一个什么,比如imageView吧,gone掉反正,relativilayout里面的东西是可以相互覆盖的,gone掉就行了 <?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" > <WebView android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/webview" android:visibility="gone" /> <SurfaceView android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/surfaceView" android:visibility="gone" /></LinearLayout>如果这样的话,设置隐藏,可以实现吗? 你的webView是需要一直显示的,不gone上面的surfaceView gone了,是可以的但是,你用的是linear,我记得不能达到布局之间的叠加覆盖,具体你自己试试我只保证relative layout 是一定可以的 你需要他的时候把他visible回来阿 service引起的ANR android4.0源码编译错误 为什么我一往Drawable文件夹放入JPG图片,工程名称上就有个橙色的感叹号? 如何做通用版 android 自己根据实例activity类和xml关联运行时报错是怎么回事 应用中如何创建积分系统 textview对单词设置点击事件,内容过多时卡顿 android vlc截图与视频录制问题 为什么我导入一个别人 的android工程老是报错 安卓viewpager+fragement实现tab选项卡之后后台崩了 安卓EditText (Android)以下图片采用哪种布局方式比较好。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<WebView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/webview"
android:visibility="gone"
/>
<SurfaceView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/surfaceView"
android:visibility="gone"
/>
</LinearLayout>
如果这样的话,设置隐藏,可以实现吗?
你的webView是需要一直显示的,不gone上面的surfaceView gone了,是可以的但是,你用的是linear,我记得不能达到布局之间的叠加覆盖,具体你自己试试我只保证relative layout 是一定可以的
你需要他的时候把他visible回来阿