0

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.

Maveňツ
  • 1
  • 12
  • 50
  • 89
Digit
  • 1,929
  • 1
  • 14
  • 17
  • Found a way to align expanded SearchView that works for me: http://stackoverflow.com/a/20146626/56285 – Jonik Nov 22 '13 at 13:58

1 Answers1

-1

You 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"/>
Afzaal Ahmad Zeeshan
  • 15,669
  • 12
  • 55
  • 103
Maveňツ
  • 1
  • 12
  • 50
  • 89