Android 如何添加按钮或复选框到谷歌地图。?
我想在我的谷歌地图活动中添加一个按钮,但在运行时出现了一个错误 我想用长按在地图上选择一个位置,并确认该位置是要选择的 我按下复选框并将位置信息发送到另一个活动,但在运行时创建复选框时出错。将创建文本视图,但不会在运行时创建复选框和按钮Android 如何添加按钮或复选框到谷歌地图。?,android,google-maps,button,checkbox,Android,Google Maps,Button,Checkbox,我想在我的谷歌地图活动中添加一个按钮,但在运行时出现了一个错误 我想用长按在地图上选择一个位置,并确认该位置是要选择的 我按下复选框并将位置信息发送到另一个活动,但在运行时创建复选框时出错。将创建文本视图,但不会在运行时创建复选框和按钮 <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:lay
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
android:layout_marginTop="50dp"
android:id="@+id/haritafragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment" />
<TextView
android:layout_width="250dp"
android:layout_height="50dp"
android:id="@+id/txtViewAddress"/>
<CheckBox
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginLeft="270dp"
android:id="@+id/cbGetAdress"
android:checked="false" />
</FrameLayout>
是否有人认为此代码存在问题,可能会解决此问题?在日志中发布错误信息