嘿伙计我是android studio的新手。我想在谷歌地图活动片段中添加按钮,但出于某种原因,它阻止我这样做。我想是因为它是一个片段。我不认为任何代码是neeed因为我没有做任何更改(只是标准谷歌地图活动)。我怎样才能改变它来创建让我们说点击按钮移动到另一个屏幕。或者地图下的工具栏
答案 0 :(得分:0)
我必须将以下代码添加到我的xml
<FrameLayout 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"
tools:context=".MapActivity" >
</FrameLaout>