2017-11-03 2 views
1

사용자가 SearchView에서 연락처 이름을 입력 할 때 자동 검색 옵션에 다음 검색 가능한 XML을 사용하고 있습니다. searchview에 이름, 번호 및 연락처 유형 표시 연락처 제안 사항

<?xml version="1.0" encoding="utf-8"?> 
<searchable xmlns:android="http://schemas.android.com/apk/res/android" 
android:label="@string/find_contact" 
android:hint="@string/find_contact" 
android:gravity="center" 
android:includeInGlobalSearch="true" 
android:queryAfterZeroResults="true" 
android:searchMode="queryRewriteFromText" 
android:searchSettingsDescription="@string/find_contact" 
android:searchSuggestAuthority="com.android.contacts" 
android:searchSuggestIntentAction="android.provider.Contacts.SEARCH_SUGGESTION_CLICKED" 
android:searchSuggestIntentData="content://com.android.contacts/contacts/lookup" > 

<!-- allow green action key for search-bar and per-suggestion clicks --> 
<actionkey 
    android:keycode="KEYCODE_CALL" 
    android:queryActionMsg="call" 
    android:suggestActionMsg="call" /> 

은 내가 android.support.v7.widget.SearchView을 사용하고 있습니다. 현재 검색중인 연락처의 이름을 입력하면 이름과 연락처의 이미지 (있는 경우) 만 제안 목록에 표시됩니다. 각 제안에 대해 연락처 목록 (직장, 집, 모바일 등)의 유형뿐만 아니라 연락처 번호를 제안 목록에 표시하는 방법?

+0

를 당신은 그렇게 할 수 없습니다 – pskink

답변

관련 문제