我厌倦了试图解决这个问题,但没有运气。
我的布局由地图视图、搜索栏和 EditText 组成。
mapview 占用整个空间的问题,因此不会出现 EditText 文本。
我试图玩重量值,但没有运气。
感谢你的帮助。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:a="http://schemas.android.com/apk/res/android"
    a:layout_width="fill_parent"
    a:layout_height="fill_parent" >
        <com.google.android.maps.MapView
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/mapview"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:apiKey="somekey"
            android:clickable="true" 
             android:layout_weight="0"
            a:layout_alignParentTop="true"
             />
       <SeekBar
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/seekBar1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_marginTop="26dp"
            a:paddingLeft="10dip"
            a:paddingRight="10dip"
            a:paddingTop="30dip"
            android:max="100" >
        </SeekBar>
 <EditText
            a:id="@+id/smsBody"
            a:layout_width="0dip"
            a:layout_height="wrap_content"
            a:layout_weight="1.0"
            a:autoText="true"
            a:capitalize="sentences"
            a:hint="@string/sms_enter_message"
            a:imeOptions="actionSend|flagNoEnterAction"
            a:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
            a:maxLines="10"
            a:nextFocusRight="@+id/send_button"
            a:layout_alignParentBottom="true" />
</RelativeLayout>