mapview 和其他控件一起显示(原文http://lordhong.iteye.com/blog/143407)
main.xml
main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<view class="com.google.android.maps.MapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" />
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="输入查询地址"
android:selectAllOnFocus="true"/>
</LinearLayout>
本文介绍了一种将Google地图视图(MapView)与其他UI控件如EditText结合使用的方法。通过XML布局文件展示了如何设置MapView与EditText共存的界面布局,其中MapView占据大部分空间,而EditText用于输入查询地址。
4433

被折叠的 条评论
为什么被折叠?



