转载请标明出处
在 上一篇 中完成了基本下载和配置,接下来进行一次简单的地图展示,点击上方按钮可切换不同地图:
比较简单直接上代码:
布局代码:
<RelativeLayout 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="com.inext.test.datatest.MapActivity">
<Button
android:id="@+id/normalMap"
android:text="普通地图"