How to set custom row layout for android searchView suggestion list -


i using searchview , searchable.xml search phone contacts.

searchable.xml

  android:searchmode="queryrewritefromtext"   android:searchsuggestauthority="com.android.contacts"   android:searchsuggestintentaction= "android.provider.contacts.search_suggestion_clicked"   android:searchsuggestintentdata= "content://com.android.contacts/contacts/lookup" 

so, when search keyword, displays suggestion list of matched contacts of phone (matched keywords highlighted in blue color).

i did not use custom adapter or custom list item layout. displays result list in default android style.

how can change style of searchview (background, hint text color, hint text font, search icon etc.) , how apply custom layout result list items.

note: getting matching contact names native contacts database. did not write query fetch result.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -