将ActionBar添加到Android Studio中的默认Google Maps活动模板

ztn*_*ark 17 android google-maps android-layout android-actionbar android-studio

我已经能够使用我的API提供的位置将所有标记添加到我的地图中,但我无法添加ActionBar.

如上所述,我使用的是Android Studio"Google Maps Activity"模板.如何将ActionBar添加到此模板?

如果您需要我的任何代码,请告诉我.

小智 57

延伸AppCompatActivity而不是FragmentActivity帮助我.

  • 这应该是公认的答案.目前接受的答案并没有解决这个问题!! (2认同)