2011-08-10 70 views
2

我想在后台我会显示一个webview。并在前景上的webview我想放置另一个按钮。如何实现相同。我可以使用地图视图加载googlemap。但无法在其上放置按钮。我在地图视图中显示Google地图。如何把按钮放在webview上

enter image description here

感谢

+1

我没有你的问题的答案,但我只想说,谷歌的标志必须是可见的,所以你不能把按钮放在那里。 – 2011-08-10 11:19:18

回答

1

谢谢大家。我通过使用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 
>