1.how我可以得到搜索查看左,右,下,..位置时,它在操作栏扩大,我在正常位置得到的值
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可以给我的话作为搜索建议的列表,供搜索查看
2.how can give my list of words as search suggestions for a searchview
您可以使用安卓layout_centerInParent =真正的
把搜索查看在中心
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"/>