1.how can i get SearchView left,right,bottom,.. positions when it is expanded in Action Bar,and i am getting the values in normal position.
2.how can give my list of words as search suggestions for a searchview.
See Question&Answers more detail:os1.how can i get SearchView left,right,bottom,.. positions when it is expanded in Action Bar,and i am getting the values in normal position.
2.how can give my list of words as search suggestions for a searchview.
See Question&Answers more detail:osYou can use android:layout_centerInParent="true"
to put searchview in center
<item android:id="@+id/action_search"
android:layout_centerInParent="true"
android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/search_main"
android:iconifiedByDefault="false"
android:title="Search"/>