I have used a Google Maps (V2) in a PopupWindow
and when I run the application, the map is not displayed. Even the area where it should be is fully transparent and I can see the activity below the PopupWindow
through it.
Any idea why this is?
Fragment inside 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" />
And how I show it inside Popup.java
SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.popup_alert_map);
locationMap = supportMapFragment.getMap();
locationMap.setMyLocationEnabled(true);
locationMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
I have another Activity
with a map it it and that displays nicely.
Any help greatly appreciated...