<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" >
<com.telemap.map.mobile.mapengine.widget.MapView
android:id="@+id/mv_main"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFFFF" >
</com.telemap.map.mobile.mapengine.widget.MapView>
<EditText
android:id="@+id/city"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/search"
android:layout_alignParentLeft="true"
android:ems="10"
android:singleLine="true"
android:text="" />
<!--button控件靠textView控件右边,名字是搜索-->
<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toRightOf="@id/city"
android:layout_weight="1"
android:text="搜索" />
<!--控件靠底部排列: android:layout_alignParentBottom="true" ,最小行数参数为minLine=3,设置文字从3行中的顶部开始写-->
<TextView
android:id="@+id/des"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:minLines="3"
android:gravity="top"
android:text="abcdefg"
android:textSize="20dp"
/>
</RelativeLayout>