第9章位置服务与地图应用45491.pptVIP

  • 15
  • 0
  • 约1.49万字
  • 约 52页
  • 2016-11-24 发布于广东
  • 举报
第9章位置服务与地图应用45491.ppt

9.2 Google地图应用 9.2.2 使用Google地图 在建立工程时将com.google.android.maps的扩展库添加到工程中,这样就可以使用Google地图的所有功能 添加com.google.android.maps扩展库的方式是在创建工程时,在Build Target项中选择Google APIs 创建工程后,修改/res/layout/main.xml文件,在布局中加入一个MapView控件,并设置刚获取的“地图密钥” 9.2 Google地图应用 9.2.2 使用Google地图 main.xml文件的完整代码如下 ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=/apk/res/android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello/ com.google.android.maps.MapV

文档评论(0)

1亿VIP精品文档

相关文档