百度地图的基础和定位功能..doc
文本预览下载声明
activity_main.xml
LinearLayout xmlns:android=/apk/res/android
xmlns:tools=/tools
android:layout_width=match_parent
android:layout_height=match_parent
tools:context=.MainActivity
android:orientation=vertical
TextView
android:layout_gravity=center_horizontal
android:id=@+id/tv
android:textSize=20sp
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=列表界面
/
LinearLayout
android:layout_weight=8
android:layout_width=match_parent
android:layout_height=0dp
android:id=@+id/ll
/LinearLayout
LinearLayout
android:layout_weight=1
android:layout_width=match_parent
android:layout_height=0dp
Button
android:layout_weight=1
android:id=@+id/btn_jichu
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=@string/Base_map /
Button
android:layout_weight=1
android:id=@+id/btn_yonghu
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=@string/Location_User /
/LinearLayout
/LinearLayout
fragment1.xml
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=/apk/res/android
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical
com.baidu.mapapi.map.MapView
android:id=@+id/bmapView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:clickable=true /
/LinearLayout
fragment2.xml
?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=/apk/res/android
android:layout_width=match_parent
android:layout_height=match_parent
com.baidu.mapapi.map.MapView
android:id=@+id/bmapView
android:layout_width=fill_parent
android:layout_height=fill_parent
显示全部