【发布时间】:2011-03-07 06:15:13
【问题描述】:
有没有办法删除设置的视图
setContentView(R.layout.set_map_center);
mapView = (MapView) findViewById(R.id.mapview);
如果我再次调用此视图,则会收到一条错误消息:
java.lang.IllegalStateException: 你 只允许拥有一个 MapActivity 中的 MapView
【问题讨论】:
-
“如果我再次调用此视图”是什么意思?你的意思是通过 findViewById ?
-
其实我觉得错误就在:setContentView(R.layout.set_map_center);
标签: android