需要实现的是2层。底层是WebView,然后在点击,或者触发事件时候在屏幕中间播放动画。应该怎样设计?

解决方案 »

  1.   

    最下面用relativeLayout上面放 webview再在上面放一个什么,比如imageView吧,gone掉反正,relativilayout里面的东西是可以相互覆盖的,gone掉就行了
      

  2.   

    <?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>
    如果这样的话,设置隐藏,可以实现吗?
      

  3.   


    你的webView是需要一直显示的,不gone上面的surfaceView  gone了,是可以的但是,你用的是linear,我记得不能达到布局之间的叠加覆盖,具体你自己试试我只保证relative layout 是一定可以的
      

  4.   


    你需要他的时候把他visible回来阿