本帖最后由 aishiqi 于 2012-06-29 17:50:50 编辑

解决方案 »

  1.   

    应该是左右切换Activity吧......
    丢个链接看能不能帮到你
    http://topic.csdn.net/u/20110328/11/A372744D-28D6-46F3-BC16-4F8A0136FF6A.html
      

  2.   

    这有何难的,一个popuwindow组件就可以实现这种效果,地图是一个图层,pop是一个图层,你自己多看点资料的
      

  3.   

    是什么东西装载了map?就让改变他的尺寸就可以的,纸上得来终觉浅,绝知此事要躬行。还是上网翻下资料,对于你所得弹出效果,用popupwindow就可以解决了,给你一个方向,其余的就要自己寻求真相了
      

  4.   


    哈哈哈哈。。用popupwindow是在是太简单了!!我一直还在苦思冥想怎么重写View实现呢谢谢哦,再接再厉
      

  5.   


    好奇怪::<?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/RelativeLayout1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" ><LinearLayout
            android:id="@+id/LinearLayout1"
            android:layout_alignParentTop="true"  
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" >
            
        <com.google.android.maps.MapView
            android:id="@+id/mv"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_alignParentTop="true"
            android:apiKey="XXXXXXXXXXXXXXXX"
            android:clickable="true"
            android:enabled="true" />
    </LinearLayout>
        
        <Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:text="Button" />    <Button
            android:id="@+id/button2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/button1"
            android:text="Button" />    <Button
            android:id="@+id/button3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/button2"
            android:text="Button" />    <Button
            android:id="@+id/button4"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/button3"
            android:text="Button" /></RelativeLayout><LinearLayout>标签是我模仿其他的布局胡乱添加的。。调试还通过了,真高兴。然后用 view=(View)findViewById(R.id.LinearLayout1);
    view.layout(100, 100, 400, 400);改变其位置。这也是我乱写的,还真的能达到效果。不过我很担心这种写法对不对。另外我还发现了一个神奇的现象::用LinearLayout装了googlemap之后会发现map会全屏了。。在他表面的按钮自动的变成半透明的了,这是为什么啊??我也没有调整透明度啊??
      

  6.   

    而且我还不能通过final Button bn=(Button)findViewById(R.id.button1);
    bn.setAlpha(255);
    让按钮不透明。。真奇怪。。谢谢你了
      

  7.   


    bn.setAlpha(int i);i是改变按钮的透明度的