请看下面的截图。
我正在尝试删除 EditText 正下方的空白。没有设置任何边距或填充,这反过来让我感到困惑。这是布局 XML。
<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" >
<EditText
android:id="@+id/searchText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:drawableLeft="@drawable/search_icon"
android:ems="10"
android:hint="@string/text_hint_search"
android:imeOptions="actionSearch"
android:inputType="text"
android:lines="1"
android:windowSoftInputMode="stateVisible" >
</EditText>
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/searchText"
android:background="@color/textGreyColor"
android:text="List of Items"
android:textAppearance="?android:attr/textAppearanceMedium" />
</RelativeLayout>
谁能指导我在哪里摔倒?
编辑:(新截图)
@Nimish Choudhary 看看左右两边的空隙!