I am using an edittext in xml for search box. I load searchbox as soon as I call the drawer and my keyboard popsup. I would like to make it such that unless the searchbox is touched, keyboard doesnt popup. How do I go about it? Here's my code so far:
<EditText
android:id="@+id/search_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/searchbox"
android:gravity="left|center_vertical"
android:hint="Search"
android:textColorHint="@android:color/darker_gray"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:imeOptions="actionSearch"
android:inputType="textNoSuggestions"
android:paddingBottom="5dp"
android:paddingLeft="20dp"
android:paddingRight="30dp"
android:paddingTop="5sp"
android:singleLine="true"
android:textColor="@android:color/darker_gray"
android:textSize="20dp" />
corresponding class:
EditText inputSearch;
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
inputSearch = (EditText) view.findViewById(R.id.search_text);
}
ant clues? thanks!