为什么我的MapView不会在片段中显示任何内容?

时间:2016-05-14 11:34:30

标签: dictionary fragment android-mapview

我正在尝试创建使用MapView显示地图的示例android应用程序,但它没有在fragment中显示任何内容。我的MapFragment如下所示

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <com.google.android.gms.maps.MapView
        android:id="@+id/mapView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</RelativeLayout>

0 个答案:

没有答案