下のスクリーンショットをご覧ください。
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左右のギャップを見てください!