i am newbie to android and working on searchView controll in android,I have put a searchView in my activity and my issue is when i am performing any action my keyboard open because of my searchView opened by default,Can anyone tell me how to make my serachView close by default when myy activity starts?my code is as below:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<SearchView
android:id="@+id/searchViewSearchPosts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:showAsAction="collapseActionView|ifRoom"
android:iconifiedByDefault="true"
android:queryHint="Search.." >
</SearchView>
<FrameLayout
android:id="@+id/fragmentTimeline"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_marginTop="0dp" />
</LinearLayout>
manifest.xml
<activity
android:name="one.tusk.stush.SearchPostActivity"
android:parentActivityName="one.tusk.stush.activities.MainActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustNothing"
android:label="Back">
>
</activity>