为什么我的布局(如下所示)包含EditText
and Button
,但未显示?MapView
占据了整个视野。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="fill_parent"
a:layout_height="fill_parent" >
<LinearLayout
a:layout_width="fill_parent"
a:layout_height="wrap_content"
a:orientation="vertical" >
<LinearLayout
a:layout_width="fill_parent"
a:layout_height="wrap_content"
a:orientation="vertical" >
<RelativeLayout
a:layout_width="fill_parent"
a:layout_height="40dip"
a:background="#50ffffff"
a:orientation="horizontal"
a:paddingBottom="0dip"
a:paddingLeft="5dip"
a:paddingRight="5dip"
a:paddingTop="5dip" >
<Button
a:id="@+id/smsCancelButton"
a:layout_width="70dip"
a:layout_height="40dip"
a:layout_alignParentRight="true"
a:layout_weight="1.0"
a:enabled="false"
a:text="@string/sms_cancel_abbr" />
</RelativeLayout>
<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="fill_parent"
android:apiKey="not shown"
android:clickable="true" />
</LinearLayout>
<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_below="@+id/textView1"
android:layout_marginTop="26dp"
a:paddingLeft="10dip"
a:paddingRight="10dip"
a:paddingTop="30dip"
android:max="100" >
</SeekBar>
</LinearLayout>
<!-- #dcdcdc -->
<LinearLayout
a:layout_width="fill_parent"
a:layout_height="wrap_content"
a:layout_alignParentBottom="true"
a:background="#dcdcdc"
a:orientation="horizontal"
a:paddingBottom="5dip"
a:paddingLeft="5dip"
a:paddingRight="5dip"
a:paddingTop="5dip" >
<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" />
<LinearLayout
a:layout_width="wrap_content"
a:layout_height="wrap_content"
a:orientation="vertical" >
<Button
a:id="@+id/smsSendButton"
a:layout_width="wrap_content"
a:layout_height="wrap_content"
a:layout_marginLeft="5dip"
a:layout_weight="1.0"
a:enabled="false"
a:nextFocusLeft="@+id/smsBody"
a:text="@string/sms_send_abbr" />
</LinearLayout>
</LinearLayout>