我在PopupWindow
中使用了Google Maps(V2),当我运行该应用程序时,地图不显示。即使它应该是完全透明的区域,我可以通过它看到PopupWindow
以下的活动。PopupWindow透明Google地图?
任何想法,为什么这是?
片段内popup_window.xml
<fragment
android:id="@+id/popup_alert_map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/popup_alert_description"
android:layout_marginTop="10dp"
class="com.google.android.gms.maps.SupportMapFragment" />
我该如何证明它里面Popup.java
SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.popup_alert_map);
locationMap = supportMapFragment.getMap();
locationMap.setMyLocationEnabled(true);
locationMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
我还有一个Activity
与地图它并是显示器很好。
任何帮助,不胜感激...
没有,仍然是一样的...... :( – Roshnal 2013-04-08 08:45:17
你有错误按摩吗? – 2013-04-08 09:19:02
不是,没有错误只有地图应该是完全透明的区域 - 我可以看到PopupWindow的另一面。 – Roshnal 2013-04-08 09:47:52