<LinearLayout 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" android:background="@color/bkg1" android:orientation="vertical" android:paddingLeft="20dp" android:paddingRight="20dp" tools:context="fishrungames.bashgid.SearchFragment" > <EditText android:id="@+id/editText" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:hint="@string/enter_search_query" android:inputType="text" > <requestFocus /> </EditText> </LinearLayout>