Android 谷歌地图+导航抽屉=没有标记?在安卓工作室

Android 谷歌地图+导航抽屉=没有标记?在安卓工作室,android,google-maps,navigation-drawer,marker,Android,Google Maps,Navigation Drawer,Marker,我是Android开发的新手 我从android studio wizard制作了一个Google地图活动,我还使用同一个向导制作了一个导航抽屉活动,它们工作得很好 我通过创建一个导航抽屉并在其中插入谷歌地图片段,将它们结合在一起,除了以下问题外,这非常好: 标记没有显示。 当前位置标记未显示。 哦,很抱歉回复晚了,这是我的示例代码 在我创建了一个导航抽屉之后,我创建了一个Google maps活动,然后从activity_maps.xml复制整个片段,我做得对吗 然后我将它粘贴到片段_main

我是Android开发的新手

我从android studio wizard制作了一个Google地图活动,我还使用同一个向导制作了一个导航抽屉活动,它们工作得很好

我通过创建一个导航抽屉并在其中插入谷歌地图片段,将它们结合在一起,除了以下问题外,这非常好:

标记没有显示。 当前位置标记未显示。 哦,很抱歉回复晚了,这是我的示例代码

在我创建了一个导航抽屉之后,我创建了一个Google maps活动,然后从activity_maps.xml复制整个片段,我做得对吗

然后我将它粘贴到片段_main,xml中。。像这样:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"
    android:layout_height="match_parent"     android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context=".MainActivity$PlaceholderFragment">

    <TextView android:id="@+id/section_label"     android:layout_width="wrap_content"
        android:layout_height="wrap_content" />



<!--THIS IS THE GOOGLE MAP FRAGMENT FROM activity_maps.xml-->
    <fragment xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/map"
        tools:context="com.e_mergetechnologies.embereye.MapsActivity"
        android:name="com.google.android.gms.maps.SupportMapFragment" />
<!--///////////////////////////////////////////////////////-->

</RelativeLayout>

^_^感谢先进的家伙们

您应该添加一些代码,这样其他“SOER”可以更快地识别问题。查看源代码,您将知道如何显示标记和当前位置点。