我在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